SAService Architect Open designer
SAService ArchitectDocumentation
Scheduling guide Compose | Kubernetes | workerStopTimeout

Deployment and shutdown — Scheduling & Temporal

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 first drains native network handlers, then ordinary Sources and Worker admission, followed by producer pools/timers, nested graph work, Sinks, and finally durable clients.

Temporal-aware shutdown order

Timeouts properties

Related but distinct limits.

PropertyTypeDescription
service.shutdownTimeoutmilliseconds

Global graceful-shutdown deadline.

Minimum: 0
connector.workerStopTimeoutmilliseconds

Worker drain cap; zero inherits remaining service deadline.

Default: 0Minimum: 0

Product-level example

service.shutdownTimeout: 30000
temporalConnector.workerStopTimeout: 0