def create_task(run_at, url): id = Task.create(url, run_at.strftime(time_format)) task_manager.push(id, time.mktime(run_at.timetuple()))