Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions fireworks/core/rocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ def background_task(btask, spec, stop_event, master_thread):
num_launched = 0
while not stop_event.is_set() and master_thread.isAlive():
for task in btask.tasks:
if hasattr(task, 'set_stop_event'):
task.set_stop_event(stop_event)
task.run_task(spec)
if btask.sleep_time > 0:
stop_event.wait(btask.sleep_time)
Expand Down