[verified] fix(cron): close restart handoff races

This commit is contained in:
Brooklyn Nicholson
2026-09-03 12:03:58 +07:00
committed by kshitij
parent 29e5172487
commit 83efdf5e5e
8 changed files with 329 additions and 31 deletions
+1 -1
View File
@@ -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