Skip to content

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

Description

@gaetan-craft

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions