madecoste / swarming

Automatically exported from code.google.com/p/swarming
Apache License 2.0
0 stars 1 forks source link

Implement SIGTERM + SIGKILL behavior on timeout #139

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Use case:
1. Have a task that hit hard or I/O timeout
2. Wrapper script traps SIGTERM, saves as much data to ISOLATED_OUTDIR as 
possible.
3. Bot sends SIGKILL if grace period was exceeded.

It's all bot-side, except for the task configurable grace_period_secs.

Original issue reported on code.google.com by maruel@chromium.org on 13 Aug 2014 at 6:31