fix: protect running validation tasks from queue cleanup
This commit is contained in:
@@ -324,6 +324,12 @@ def run_poll_loop(
|
||||
age_reserved_slots=age_cleanup_reserve_slots,
|
||||
log=log,
|
||||
)
|
||||
policy_cancelled_recorded = outcome_tracker.mark_policy_cancellations(
|
||||
cleanup_summary["cancelledTasks"]
|
||||
)
|
||||
if policy_cancelled_recorded:
|
||||
outcome_tracker.save()
|
||||
cleanup_summary["policyCancelledRecorded"] = policy_cancelled_recorded
|
||||
write_json(
|
||||
Path(
|
||||
getattr(
|
||||
@@ -344,6 +350,7 @@ def run_poll_loop(
|
||||
"certainOomCount": cleanup_summary["certainOomCount"],
|
||||
"oldOverflowCount": cleanup_summary["oldOverflowCount"],
|
||||
"cancelledCount": cleanup_summary["cancelledCount"],
|
||||
"policyCancelledRecorded": policy_cancelled_recorded,
|
||||
"stopErrorCount": len(cleanup_summary["stopErrors"]),
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user