Skip to content

Commit 7831603

Browse files
committed
ongoing new scheduler
1 parent ab0735f commit 7831603

File tree

1 file changed

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

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,12 @@ async def list(
7171
)
7272
if scheduled_since is not None:
7373
scheduled_cutoff = arrow.utcnow().datetime - scheduled_since
74-
conditions.append(comp_runs.c.last_scheduled >= scheduled_cutoff)
74+
conditions.append(
75+
or_(
76+
comp_runs.c.last_scheduled.is_(None),
77+
comp_runs.c.last_scheduled >= scheduled_cutoff,
78+
)
79+
)
7580

7681
async with self.db_engine.acquire() as conn:
7782
return [

0 commit comments

Comments
 (0)