Skip to content

Commit

Permalink
Fixes #64 (performance issue)
Browse files Browse the repository at this point in the history
  • Loading branch information
bzizou committed Sep 6, 2024
1 parent 5c8e5d1 commit 42e8d6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oar/lib/accounting.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def check_accounting_update(session: Session, window_size: int):
nb_resources,
)

session.query(Job).update({Job.accounted: "YES"}, synchronize_session=False)
session.query(Job).filter(Job.accounted == "NO").update({Job.accounted: "YES"}, synchronize_session=False)

session.commit()

Expand Down

0 comments on commit 42e8d6d

Please sign in to comment.