Title: Components cannot declare a stop timeout, so a deploy kills a worker's long tasks after 90 seconds · Issue #497 · cloudfall-dev/cloudfall · GitHub
Open Graph Title: Components cannot declare a stop timeout, so a deploy kills a worker's long tasks after 90 seconds · Issue #497 · cloudfall-dev/cloudfall
X Title: Components cannot declare a stop timeout, so a deploy kills a worker's long tasks after 90 seconds · Issue #497 · cloudfall-dev/cloudfall
Description: Problem A component's systemd unit has no stop settings, so a deploy, restart or rollback stops every component the same way: systemd's defaults, SIGTERM and then SIGKILL after 90 seconds. engine/ansible/roles/cloudfall_deploy/templates/...
Open Graph Description: Problem A component's systemd unit has no stop settings, so a deploy, restart or rollback stops every component the same way: systemd's defaults, SIGTERM and then SIGKILL after 90 seconds. engine/a...
X Description: Problem A component's systemd unit has no stop settings, so a deploy, restart or rollback stops every component the same way: systemd's defaults, SIGTERM and then SIGKILL after 90 seconds. ...
Opengraph URL: https://github.com/cloudfall-dev/cloudfall/issues/497
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Components cannot declare a stop timeout, so a deploy kills a worker's long tasks after 90 seconds","articleBody":"### Problem\n\nA component's systemd unit has no stop settings, so a deploy, `restart` or `rollback` stops every component the same way: systemd's defaults, SIGTERM and then SIGKILL after 90 seconds.\n\n`engine/ansible/roles/cloudfall_deploy/templates/component.service.j2` renders `Type`, `User`, `Group`, `WorkingDirectory`, `EnvironmentFile`, `ExecStart`, `Restart`, `RestartSec`, `NoNewPrivileges` and `PrivateTmp`. It sets no `TimeoutStopSec`, `KillSignal` or `KillMode`, and the Component schema has no field for them.\n\nThat fits an HTTP service. It does not fit a worker component (the architecture names worker and scheduler as component kinds):\n\n- A queue worker such as Celery finishes its running tasks on SIGTERM. A task longer than 90 seconds is killed on every deploy, and it is lost unless the queue redelivers it (`acks_late` in Celery)\n- The operator cannot see this from the record: the deploy passes its health gate, the receipt says the release is healthy, and nothing says a task was cut off\n- The unit is managed (\"Local changes will be overwritten\"), so a hand edit or a drop-in is not a durable fix\n\n### Proposal\n\nLet a component declare how it stops, and render it into the unit:\n\n```yaml\nservice:\n manager: systemd\n name: crm-worker\n command: [.venv/bin/celery, -A, crm, worker]\n stop:\n timeoutSeconds: 900\n```\n\n- `service.stop.timeoutSeconds` renders `TimeoutStopSec=`; omitted, the unit stays as it is today\n- A bound in the schema, as `release.timeoutSeconds` has (1 to 1800)\n- The restart step has to wait at least that long, so a slow stop is not reported as a failed deploy\n- Whether `KillSignal` and `KillMode` belong in the same block is open: `KillMode=mixed` is a common choice for prefork workers, but one field may be enough for a first version\n- A short note in the docs on deploying a worker: `healthCheck.type: command` for a worker without an HTTP port, and the stop timeout against the longest task\n\n### Alternatives\n\n- A systemd drop-in next to the managed unit: works today, but lives outside the record and is not validated or shown in receipts\n- Leave the default and rely on redelivery: correct only for idempotent tasks on queues that acknowledge late, and it still repeats the work on every deploy\n\n\u003c!-- shipmill:agent -->","author":{"url":"https://github.com/apps/shipmill-romamo","@type":"Person","name":"shipmill-romamo"},"datePublished":"2026-11-17T12:29:41Z","url":"https://github.com/cloudfall-dev/cloudfall/issues/497"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:815377ff-2043-3928-77ab-8b66ef004f84 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B1E8:2D8E06:F0A766:148B128:6B055987 |
| html-safe-nonce | cb3266187c96a7c363c3670222a53af6600bd5bf5a372d31c86a17638912d16e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMUU4OjJEOEUwNjpGMEE3NjY6MTQ4QjEyODo2QjA1NTk4NyIsInZpc2l0b3JfaWQiOiI0NDk2ODU1OTEyMDM1OTk4MDg3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c1a56c339b2a38468683d9e5428ef1a09521531be78094bf9fd5b388e5778c97 |
| hovercard-subject-tag | issue:6444550840 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/cloudfall-dev/cloudfall/497/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f774ed04ee1f3511fa4e9f4231fefffdc1234e09bbdeb1ef3352e374671e1fd2/cloudfall-dev/cloudfall/issues/497 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f774ed04ee1f3511fa4e9f4231fefffdc1234e09bbdeb1ef3352e374671e1fd2/cloudfall-dev/cloudfall/issues/497 |
| og:image:alt | Problem A component's systemd unit has no stop settings, so a deploy, restart or rollback stops every component the same way: systemd's defaults, SIGTERM and then SIGKILL after 90 seconds. engine/a... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | shipmill-romamo[bot] |
| hostname | github.com |
| expected-hostname | github.com |
| None | a79a02b7e7546ea306864e922ed2103ef4c04fac63168e11c2b2d4d816793080 |
| turbo-cache-control | no-preview |
| go-import | github.com/cloudfall-dev/cloudfall git https://github.com/cloudfall-dev/cloudfall.git |
| octolytics-dimension-user_id | 339512759 |
| octolytics-dimension-user_login | cloudfall-dev |
| octolytics-dimension-repository_id | 1360999777 |
| octolytics-dimension-repository_nwo | cloudfall-dev/cloudfall |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1360999777 |
| octolytics-dimension-repository_network_root_nwo | cloudfall-dev/cloudfall |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 10dff83edfd4f3617a7792a152d44991587b434c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width