Skip to content

Commit 526db7b

Browse files
fix
1 parent 9ed6036 commit 526db7b

File tree

1 file changed

+6
-3
lines changed
  • services/director-v2/src/simcore_service_director_v2/modules/db/repositories/comp_tasks

1 file changed

+6
-3
lines changed

services/director-v2/src/simcore_service_director_v2/modules/db/repositories/comp_tasks/_core.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,12 +301,15 @@ async def mark_project_published_waiting_for_cluster_tasks_as_aborted(
301301
.where(
302302
(comp_run_snapshot_tasks.c.run_id == run_id)
303303
& (comp_run_snapshot_tasks.c.project_id == f"{project_id}")
304-
& (comp_run_snapshot_tasks.c.node_class == NodeClass.COMPUTATIONAL)
305304
& (
306-
(comp_run_snapshot_tasks.c.state == StateType.PUBLISHED)
305+
comp_run_snapshot_tasks.c.node_class
306+
== NodeClass.COMPUTATIONAL.value
307+
)
308+
& (
309+
(comp_run_snapshot_tasks.c.state == StateType.PUBLISHED.value)
307310
| (
308311
comp_run_snapshot_tasks.c.state
309-
== StateType.WAITING_FOR_CLUSTER
312+
== StateType.WAITING_FOR_CLUSTER.value
310313
)
311314
)
312315
)

0 commit comments

Comments
 (0)