This commit is contained in:
David Brazda
2023-11-24 22:18:12 +01:00
parent 6cd7368f00
commit 8963a26ed6

View File

@ -308,10 +308,10 @@ def capsule(target: object, db: object, inter_batch_params: dict = None):
print("Strategy instance stopped. Update runners")
reason = None
if target.se.is_set():
print("STOP FLAG IS SET - cancel BATCH")
inter_batch_params["stop"] = True
reason = "STOP Signal received"
# if target.se.is_set():
# print("STOP FLAG IS SET - cancel BATCH")
# inter_batch_params["stop"] = True
# reason = "STOP Signal received"
except Exception as e:
reason = "SHUTDOWN Exception:" + str(e) + format_exc()