adamkewley / jobson

A platform for transforming command-line applications into a job service.
Apache License 2.0
256 stars 20 forks source link

allow Jobson to use SIGINT instead of SIGTERM when aborting jobs #96

Closed brokeDude2901 closed 2 years ago

brokeDude2901 commented 2 years ago

hi, i was wondering if its possible for jobson to abort/stop jobs gracefully using SIGINT.

brokeDude2901 commented 2 years ago

hi, i was wondering if its possible for jobson to abort/stop jobs gracefully using SIGINT.

it seems jobson does gracefully exit a job already, it just doesnt output to the user web UI. I tested my bash script with this:

trap "echo 1 > $HOME/aborted_but_still_do_command" EXIT

and the file is present