Skip to content

Scheduler SIGTERM Handler #461

Description

@lryan599

I noticed that the scheduler does not have a handler set for sigterm, which leads to the scheduler as a pid 1 process not properly handling the sigterm signals sent by the kube to exit correctly when I deploy the scheduler in a container alone.

Actually, sigint can be captured, but sigterm can not, and should probably be set explicitly.

Is it possible to set the signal handler for taskiq scheduler just like worker?

Activity

  1. changed the title [-]Scheduler SIGTERM/SIGINT Handler[/-] [+]Scheduler SIGTERM Handler[/+] on May 8, 2025
  2. robertaistleitner commented on Jun 16, 2025

    @robertaistleitner

    I just found the same issue because docker wasn't able to properly stop the container using the default SIGINT signal. It just waits for the timeout and hard kills it after the configured timeout.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions