[Feature] Support skip-if-uncompleted-tasks-exist for Recurring Tasks
Closed this issue · 0 comments
lloydmeta commented
It would be nice to support not scheduling a Recurring Task if there are any outstanding Tasks that belong to it (not DEAD or DONE).
This could be added as an optional (default false
) field on RecurringTask.
One simple way to do this for Recurring Tasks that have this option set to true
would be to do a search for the existence of outstanding tasks any before scheduling the Task in the Scheduler
tasques/internal/infra/cron/task/recurring/scheduler.go
Lines 60 to 77 in 83b0cc4