WindmillWWindmill
Powered by
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
docker stop
WindmillJoin
3,362Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Recent Announcements
henri-c

Weekly kenote to tell you about our latest updates https://discord.com/channels/930051556043276338/1278977038430240813 https://youtube.com/live/2dGd9TdT8xs?feature=share

henri-c ยท 4d ago

Pyra

### HTTP tracing (EE) Capture HTTP requests made by job scripts as observability spans Features: - View HTTP request traces (method, URL, status, timing) in the job details UI - Auto-instrumentation for Native TypeScript, MITM proxy for other languages - Integrates with external OpenTelemetry collectors changelog: https://www.windmill.dev/changelog/http-tracing docs: https://www.windmill.dev/docs/advanced/instance_settings#http-tracing Additionally jobs memory metrics are now fully OSS!

Pyra ยท 2w ago

henri-c

First keynote of the year here https://discord.com/channels/930051556043276338/1278977038430240813 ๐Ÿ™‚

henri-c ยท 4w ago

Similar Threads

Windmill workers disappeared
Son TungSSon Tung / help
2mo ago
"Bare metal" workers
cmptrCcmptr / help
2y ago
auto scaling workers
pixeleetPpixeleet / help
2y ago
Workers show up in service logs, but not in the Workers UI
develocoDdeveloco / help
9mo ago