Feature description
Can we add an administrative function allowing to clean up the tasks table with flexibility?
export type CleanupType = "INCLUDING" | "EXCLUDING";
cleanupTasks(options: {
tasks?: string[];
type?: CleanupType;
}): Promise<void>
Motivating example
With #412/#415 we are able to clean up the private tables.
GC_TASK_IDENTIFIERS deletes task identifiers that don't contain any jobs.
In some cases, a task doesn't have any jobs now, but will have jobs later.
If we delete the task, when new jobs are queued, the task will be re-created with a different id, and pre-existing workers won't process those jobs.
Supporting development
I
Feature description
Can we add an administrative function allowing to clean up the tasks table with flexibility?
Motivating example
With #412/#415 we are able to clean up the private tables.
GC_TASK_IDENTIFIERS deletes task identifiers that don't contain any jobs.
In some cases, a task doesn't have any jobs now, but will have jobs later.
If we delete the task, when new jobs are queued, the task will be re-created with a different id, and pre-existing workers won't process those jobs.
Supporting development
I