Fix cron.add_task to match changes to upload_template