Skip to content

Commit

Permalink
Fixes #62 (performance issue)
Browse files Browse the repository at this point in the history
  • Loading branch information
bzizou committed Sep 6, 2024
1 parent bb94a28 commit 5c8e5d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oar/lib/job_handling.py
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ def get_current_jobs_dependencies(session, jobs):
def get_current_not_waiting_jobs(
session,
):
jobs = session.query(Job).filter(Job.state != "Waiting").all()
jobs = session.query(Job).filter(Job.state in ('Hold','toLaunch','toError','toAckReservation','Launching','Running','Suspended','Resuming','Finishing')).all()
jobs_by_state = {}
for job in jobs:
if job.state not in jobs_by_state:
Expand Down

0 comments on commit 5c8e5d1

Please sign in to comment.