Move cron to a task