Skip to content
Snippets Groups Projects
Commit 901ef93e authored by Daniel Nemergut's avatar Daniel Nemergut
Browse files

Using enum for std_cal wf name

parent ed2be8c5
No related branches found
No related tags found
1 merge request!1627Image annihilation test fixes
Pipeline #15062 passed
......@@ -547,7 +547,7 @@ class ImageAnnihilator(WorkflowAnnihilator):
JOIN capability_executions ce ON ce.current_workflow_request_id = wr.workflow_request_id
JOIN capability_requests cr ON cr.capability_request_id = ce.capability_request_id
JOIN capability_versions cv ON cv.capability_request_id = ce.capability_request_id
WHERE cr.capability_name = 'std_calibration'
WHERE cr.capability_name = %(cal_wf_name)s
AND cr.state = 'Complete'
AND wr.cleaned = false
AND cr.updated_at < %(time_to_keep)s
......@@ -569,6 +569,7 @@ class ImageAnnihilator(WorkflowAnnihilator):
params = {
"wf_name": self._workflow,
"cal_wf_name": TypedAnnihilators.CAL.value,
"time_to_keep": (datetime.datetime.now() - relativedelta(days=int(self.get_days_to_keep("image"))))
.strftime('%Y-%m-%d %H:%M:%S'),
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment