[verified] fix(cron): close restart handoff races
This commit is contained in:
committed by
kshitij
parent
29e5172487
commit
83efdf5e5e
@@ -334,7 +334,7 @@ def restart_safe_gateway_child_argv(
|
||||
closed if it cannot be established. Standalone processes, non-systemd
|
||||
supervisors, and non-Linux hosts retain the direct command.
|
||||
"""
|
||||
if _IS_WINDOWS:
|
||||
if not _IS_LINUX:
|
||||
return command
|
||||
if not _is_supervised_gateway_process() or not os.environ.get("INVOCATION_ID"):
|
||||
return command
|
||||
|
||||
Reference in New Issue
Block a user