Clean old tasks
A cleanup task for removing past runs.
remove_old_cleanup_tasks()
Find and remove runs of old cleanup tasks.
Source code in gso/workflows/tasks/clean_old_tasks.py
task_clean_old_tasks()
Remove all runs of old cleanup tasks.
This will look for all past executions of the orchestrator-core
built-in cleanup task, and this current cleanup
task. Once they have run to completion, or are stuck in a "created" state, they serve no purpose in the database and
can therefore be removed.