def install():
load()<EOL>tab = crontab.CronTab(user=True)<EOL>for task in registry:<EOL><INDENT>tab.new(task.command, KRONOS_BREADCRUMB).setall(task.schedule)<EOL><DEDENT>tab.write()<EOL>return len(registry)<EOL>
Register tasks with cron.