Skip to content

Commit

Permalink
feat (FTS): only take active job for active operation (speedup)
Browse files Browse the repository at this point in the history
  • Loading branch information
chaen committed Aug 23, 2024
1 parent 7af5cfc commit e556b44
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/DIRAC/DataManagementSystem/DB/FTS3DB.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ def getActiveJobs(self, limit=20, lastMonitor=None, jobAssignmentTag="Assigned")
session.query(FTS3Job)
.join(FTS3Operation)
.filter(FTS3Job.status.in_(FTS3Job.NON_FINAL_STATES))
.filter(FTS3Operation.status == "Active")
.filter(FTS3Job.assignment.is_(None))
.filter(FTS3Operation.assignment.is_(None))
)
Expand Down

0 comments on commit e556b44

Please sign in to comment.