diff --git a/python/ray/node.py b/python/ray/node.py index fe6cf06bc..08eb307dd 100644 --- a/python/ray/node.py +++ b/python/ray/node.py @@ -206,10 +206,10 @@ class Node(object): atexit.register(atexit_handler) - # Register the a handler to be called if we get a SIGTERM. + # Register the handler to be called if we get a SIGTERM. # In this case, we want to exit with an error code (1) after # cleaning up child processes. - def sigterm_handler(): + def sigterm_handler(signum, frame): return clean_up_children(lambda *args, **kwargs: sys.exit(1)) signal.signal(signal.SIGTERM, sigterm_handler)