Commit e469c51
committed
ci(compose): give the worker 60s to drain on SIGTERM
Without stop_grace_period, docker SIGKILLs containers 10s after
SIGTERM. For the huey worker that means an in-flight mail send,
periodic close_due task, or DB transaction can be cut mid-way — the
mail is half-delivered, the row is mid-commit, or the next worker
will reprocess the same task without idempotency keys (which we now
have for mail).
60s matches gunicorn's --graceful-timeout from docker-entrypoint.sh
and leaves headroom for the longest realistic in-flight task.1 parent 3b007dc commit e469c51
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
| |||
0 commit comments