SindreS
Windmillโ€ข3y agoโ€ข
38 replies
Sindre

Gracefully exiting workers

I'm currently in the process of running some scheduling jobs, that I want to run quite often. Let's say every 5 sek or so. But I could also only do it once every 15 min. I'm sending a mail to new users of windmill, and nowadays people is expecting mails fast.

I still run my system on docker compose. And I'm currently updating the containers quite often. docker sends SIGTERM and then SIGKILL after a grace period [1]. how does windmill workers behave when executing a job and getting a SIGTERM?

I'm never in a rush, so I do not want to kill them. my thinking is that I should configure the grace period to be the same as the TIMEOUT env var. But then I expect the workers that recive a SIGTERM to exit and not take on another job. Is this a correct understanding of how workers in windmill should work?

[1] https://docs.docker.com/engine/reference/commandline/stop/
Docker Documentation
docker stop
Was this page helpful?