mirror of
https://github.com/vale981/ray
synced 2025-03-07 02:51:39 -05:00
[Core] Exit autoscaler with a non-zero exit code upon handling SIGINT/SIGTERM (#14518)
This commit is contained in:
parent
32e50b8c67
commit
91cf272c2e
1 changed files with 3 additions and 2 deletions
|
@ -261,8 +261,9 @@ class Monitor:
|
|||
redis_client, ray_constants.MONITOR_DIED_ERROR, message)
|
||||
|
||||
def _signal_handler(self, sig, frame):
|
||||
return self._handle_failure(f"Terminated with signal {sig}\n" +
|
||||
"".join(traceback.format_stack(frame)))
|
||||
self._handle_failure(f"Terminated with signal {sig}\n" +
|
||||
"".join(traceback.format_stack(frame)))
|
||||
sys.exit(sig + 128)
|
||||
|
||||
def run(self):
|
||||
# Register signal handlers for autoscaler termination.
|
||||
|
|
Loading…
Add table
Reference in a new issue