Closed dotsdl closed 1 year ago
Patch coverage: 100.00%
and no project coverage change.
Comparison is base (
2028a63
) 99.12% compared to head (9146ea8
) 99.12%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
My only concern would be if INT
is being used elsewhere, e.g., by a queueing system, in which case we'd want to catch it and terminate cleanly. (Which also might be an option here, anyway.)
The queueing systems I know send TERM
or USR2
, followed by a KILL
; I'm not aware of one using INT
, but I don't claim to know them all!
If we ever handle mid-unit restarts, we'll need to handle KeyboardInterrupt
with a little more logic, but that's easily added. Otherwise, seems reasonable -- either needs a test or exclude from coverage.
@dwhswenson thanks for this! I've added an explicit test for the new behavior.
As for the concern you raised about queueing systems, I think you're right that SIGINT generally isn't used for terminating jobs, so I think we're still good here.
This PR is an attempt to address openforcefield/alchemiscale#132.
@mikemhenry raised a good point that for the case of a
KeyboardInterrupt
, even ifraise_error = False
forProtocolUnit.execute
, we probably always want to raise.Is there any downside to this?