radical-cybertools / radical.saga

A Light-Weight Access Layer for Distributed Computing Infrastructure and Reference Implementation of the SAGA Python Language Bindings.
http://radical-cybertools.github.io/saga-python/
Other
83 stars 34 forks source link

allow to trap `SIGTERM` before `SIGKILL` is sent #856

Closed andre-merzky closed 1 year ago

andre-merzky commented 1 year ago

trapping is too slow it seems, and we need to delay juuuuust a bit before sending SIGKILL. POSIX has no sub-second sleep, so we (ab)use /dev/urandom for a little busy-time.

This supports radical-cybertools/radical.pilot/pull/2725

codecov[bot] commented 1 year ago

Codecov Report

Merging #856 (d22af77) into devel (5b9803b) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##            devel     #856   +/-   ##
=======================================
  Coverage   42.87%   42.87%           
=======================================
  Files          97       97           
  Lines       12745    12745           
=======================================
  Hits         5464     5464           
  Misses       7281     7281           

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more