Handle process signals through cooperative cancellation

This commit is contained in:
2026-11-26 02:23:48 +00:00
parent add2811a64
commit 383b43ab08
7 changed files with 277 additions and 4 deletions

View File

@@ -11,6 +11,10 @@ or [migration guidance](native-migration.md) for older callers.
Use an argument vector with explicit paths appropriate to the deployment.
Absolute paths avoid dependence on a service's working directory. Keep stdout
and stderr separate, and choose caller cancellation/deadline behavior.
On the executable, the first SIGINT or SIGTERM requests cooperative cancellation;
started work can drain and available capture can be finalized. A subsequent signal
uses ordinary process handling and may interrupt cleanup. No shutdown deadline is
implied, and callers should not assume non-cooperative extensions will stop.
Validate the application and pipeline offline: