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

Distincts to cut down on duplicate deletion attempts

parent 0241c932
No related branches found
No related tags found
1 merge request!1627Image annihilation test fixes
......@@ -486,7 +486,7 @@ class CalibrationAnnihilator(WorkflowAnnihilator):
:return: a list of directories to clean
"""
query = f"""
SELECT wr.results_dir
SELECT DISTINCT wr.results_dir
FROM workflow_requests wr
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
......@@ -521,7 +521,7 @@ class ImageAnnihilator(WorkflowAnnihilator):
"""
# Fetch the completed imaging requests
query = f"""
SELECT wr.results_dir
SELECT DISTINCT wr.results_dir
FROM workflow_requests wr
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
......
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