Skip to content

Prevent cli from taking new job after receiving a signal #532

Open
@gaetan-craft

Description

Feature description

After receiving a signal (for example SIGUSR), the cli worker stop taking new tasks and exit when the last task he locked is over. The ixit part is nor mandatory

Motivating example

A host running cli worker need to be restarted, for example because of security patches to be applied. I'd like to be able to spawn a new host to take the tasks and sunset the other host letting him finish its running tasks

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions