Skip to content

Commit f1544b2

Browse files
author
Peter Amstutz
committed
Report Arvados priority=0 containers as CANCELED.
1 parent 29c5ccf commit f1544b2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

wes_service/arvados_wes.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,13 @@ def GetRunLog(self, run_id):
208208
containers_map = {c["uuid"]: c for c in tasks}
209209
containers_map[container["uuid"]] = container
210210
else:
211-
container = {"state": "Queued", "exit_code": None, "log": None}
211+
container = {
212+
"state": "Queued" if request["priority"] > 0 else "Cancelled"
213+
"exit_code": None,
214+
"log": None
215+
}
216+
else:
217+
pass
212218
tasks = []
213219
containers_map = {}
214220
task_reqs = []

0 commit comments

Comments
 (0)