Skip to content

New job_key_mode - abort_replace #546

Open
@aubergene

Description

@aubergene

Feature description

(I am evaluating Graphile worker to see if it could fit the use case I have in mind)

I would like a new job_key_mode mode perhaps called abort_replace which would trigger abort on the locked task with the matching job_key

Motivating example

I have a job which takes a while to complete and relies on data. If a new job has been submitted which has the same jobKey then the locked task is running with stale data and can be aborted since the result of the task won't be needed

Supporting development

I [tick all that apply]:

  • 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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions