You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
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.
Activity
[-]Scheduler SIGTERM/SIGINT Handler[/-][+]Scheduler SIGTERM Handler[/+]robertaistleitner commentedon Jun 16, 2025
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.