Scheduling guide
Compose | Kubernetes | workerStopTimeoutDeployment and shutdown
Generated environments and Temporal-aware worker drain order.
When to use
Use this page while designing, implementing, operating, or troubleshooting scheduled and durable execution.
Behavior
- Compose provisions PostgreSQL, Temporal Server, namespace initialization, admin tools, and UI before services.
- Kubernetes output includes chart values, PostgreSQL, admin/UI, and metrics discovery.
- Shutdown drains ordinary Sources, worker admission, graph work, Sinks, then durable clients.
Temporal-aware shutdown order
AdmissionHTTP, gRPC, CronStop new root work; drain accepted calls.
WorkersTemporal admissionStop polling new tasks.
GraphNested workDrain with pools and storage alive.
OutboundSinks and clientsFinish submissions, then close clients.
TelemetryMetrics, traces, logsFlush last.
Timeouts properties
Related but distinct limits.
PropertyTypeDescription
service.shutdownTimeoutmillisecondsGlobal graceful-shutdown deadline.
Minimum:0connector.workerStopTimeoutmillisecondsWorker drain cap; zero inherits remaining service deadline.
Default:0Minimum: 0Product-level example
service.shutdownTimeout: 30000
temporalConnector.workerStopTimeout: 0