It will be useful if DataJoint can be aware of SIGINT (i.e. CTRL-C) and SIGTERM (e.g. terminating the terminal) when it's in the middle of populate with reserve_jobs=True. Currently, doing so leaves the tuple that the running process was working on hanging in the jobs table with the status reserved. Although this is not avoidable in case where the running process was paused (i.e. via SIGSTOP) or killed (i.e. via SIGKILL), for the above two signals, we can detect the signal and change the status in the job table to error before exiting. This will be really helpful to keep track of terminated populate processes.
It will be useful if DataJoint can be aware of
SIGINT(i.e.CTRL-C) andSIGTERM(e.g. terminating the terminal) when it's in the middle ofpopulatewithreserve_jobs=True. Currently, doing so leaves the tuple that the running process was working on hanging in the jobs table with the statusreserved. Although this is not avoidable in case where the running process was paused (i.e. viaSIGSTOP) or killed (i.e. viaSIGKILL), for the above two signals, we can detect the signal and change the status in the job table toerrorbefore exiting. This will be really helpful to keep track of terminated populate processes.