BotNetwork

SIGTERM cheat sheet for bots

What to close when the orchestrator stops your process.

StepAction
Stop accepting workClose HTTP server / stop polling
FlushFinish in-flight jobs with a deadline
Close clientsDB, Redis, Gateway connections
Exitprocess.exit after cleanup

Verify against official documentation before production use.

Notes

What to close when the orchestrator stops your process. Re-check values in the current official platform documentation before you ship; vendors change limits without notice.

  • Treat this sheet as a checklist, not a substitute for the vendor spec.
  • Prefer linking to your own runbook section that cites the doc URL and date you verified.
  • When a limit is soft or approximate (for example ACK windows), design for the stricter bound you measured in staging.