Update task_scheduler.py