Skip to content

Commit 9a2aa12

Browse files
committed
Update grid_cron to really use daemon helpers.
1 parent b4bb7d1 commit 9a2aa12

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sbin/grid_cron.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@
9696

9797
logger.debug('(%s) Starting main loop' % main_pid)
9898
print("%s: Start main loop" % os.getpid())
99-
while not stop_running.is_set():
99+
while not check_stop():
100100
try:
101101
time.sleep(1)
102102
except KeyboardInterrupt:
103-
stop_running.set()
103+
stop_running()
104104
# NOTE: we can't be sure if SIGINT was sent to only main process
105105
# so we make sure to propagate to monitor child
106106
print("Interrupt requested - close monitor and shutdown")

0 commit comments

Comments
 (0)