generated from john/python-template
fix: derive worker shutdown wait from timeout budget
Co-authored-by: Copilot App <[email protected]>
This commit is contained in:
co-authored by
Copilot App
parent
86cdb4035c
commit
f9261a1af3
@@ -127,3 +127,17 @@ Every suppression must be:
|
||||
|
||||
Do not use broad or rationale-free suppressions. If a diagnostic is not a known
|
||||
false positive, fix the code instead of suppressing it.
|
||||
|
||||
## 8. Worker shutdown budget
|
||||
|
||||
Worker shutdown waits for at most:
|
||||
|
||||
`WORKER_PROVIDER_TIMEOUT_SECONDS + WORKER_SHUTDOWN_GRACE_SECONDS`
|
||||
|
||||
`WORKER_PROVIDER_TIMEOUT_SECONDS` covers an in-flight provider call, and
|
||||
`WORKER_SHUTDOWN_GRACE_SECONDS` is extra time for the loop to persist outcomes
|
||||
and exit cleanly after the call returns.
|
||||
|
||||
Set the container or service termination grace period **above this total**
|
||||
budget. If termination grace is shorter, the process may be killed before
|
||||
terminal status and evidence writes are finalized.
|
||||
|
||||
Reference in New Issue
Block a user