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") print("Strategy instance stopped. Update runners")
reason = None reason = None
if target.se.is_set(): # if target.se.is_set():
print("STOP FLAG IS SET - cancel BATCH") # print("STOP FLAG IS SET - cancel BATCH")
inter_batch_params["stop"] = True # inter_batch_params["stop"] = True
reason = "STOP Signal received" # reason = "STOP Signal received"
except Exception as e: except Exception as e:
reason = "SHUTDOWN Exception:" + str(e) + format_exc() reason = "SHUTDOWN Exception:" + str(e) + format_exc()