We discovered that unlike the bsub manager (who sends
SIGINT), HTCondor seems to send
SIGTERM to notify a job of its approaching end. This MR binds the
SIGTERM signal to the same signal handler that processes our interrupt (Ctrl-C) signal, ie. the last event is finished, files are stored to disk and the program exits.
This also works when sending a
kill signal on the same system, i.e.
@pschutze should solve your HTCondor issue.