We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4bb7d1 commit 9a2aa12Copy full SHA for 9a2aa12
1 file changed
sbin/grid_cron.py
@@ -96,11 +96,11 @@
96
97
logger.debug('(%s) Starting main loop' % main_pid)
98
print("%s: Start main loop" % os.getpid())
99
- while not stop_running.is_set():
+ while not check_stop():
100
try:
101
time.sleep(1)
102
except KeyboardInterrupt:
103
- stop_running.set()
+ stop_running()
104
# NOTE: we can't be sure if SIGINT was sent to only main process
105
# so we make sure to propagate to monitor child
106
print("Interrupt requested - close monitor and shutdown")
0 commit comments