ff740689cd1505afd03a515db0ed1839b66748f0
Once graceful shutdown begins (SIGINT/SIGTERM cancels the daemon's signal context), start an out-of-loop watchdog timer for the drain window plus a 60s grace period. If the shutdown chain has not completed by the time that leash expires, force-exit the process (os.Exit) as a backstop against a hung shutdown. The watchdog runs in its own goroutine outside the daemon's event loop and graceful-shutdown machinery, so it fires even when that machinery is itself the thing that is stuck. It is disarmed via the FIRST registered cleanup so it runs LAST in the LIFO shutdown chain: it stands down only after every subsystem has shut down cleanly, and a hung subsystem never reaches the disarm, letting the watchdog force-exit. A shutdown that completes within the leash does not trigger the watchdog; a shutdown that hangs past the leash results in a forced process exit. The leash uses a test-only short timeout in tests. Reference bead archie-core-1786637496842-267-8b2984f9.
Description
Archie connects events from your systems to agents that can investigate, reason, and act.
Define what an event means, map its data into a workflow, and give that workflow an agent equipped for the job: its own execution environment, tools, and identity.
https://archie.catlow.cloud
133 MiB
0 Stars
1 Watchers
0 Forks
Releases
11
Archie v1.62.0
Latest
Languages
Go
76.8%
Vue
13.1%
TypeScript
7.8%
JavaScript
1.2%
Shell
0.6%
Other
0.4%