Skip to content

Clean old tasks

Metatask that cleans up old cleanup tasks.

clean_old_tasks()

Run all cleanup tasks every 11 PM UTC.

Source code in gso/schedules/clean_old_tasks.py
@shared_task
@scheduler(CronScheduleConfig(name="Clean up tasks", hour="23"))
def clean_old_tasks() -> None:
    """Run all cleanup tasks every 11 PM UTC."""
    start_process("task_clean_old_tasks")