Skip to content

Flexible _private_tasks clean up function #460

@christophemacabiau

Description

@christophemacabiau

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

  • am interested in building this feature myself
  • am interested in collaborating on building this feature
  • am willing to help testing this feature before it's released
  • am willing to write a test-driven test suite for this feature (before it exists)
  • am a Graphile sponsor ❤️
  • have an active support or consultancy contract with Graphile

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions