Skip to content

Commit

Permalink
[job_handling] fix request using span
Browse files Browse the repository at this point in the history
  • Loading branch information
adfaure committed Oct 17, 2023
1 parent 70e029e commit 5dfddcf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion oar/lib/job_handling.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,8 @@ def get_gantt_jobs_to_launch(
.filter(Job.id == MoldableJobDescription.job_id)
.filter(MoldableJobDescription.id == GanttJobsPrediction.moldable_id)
.filter(GanttJobsResource.moldable_id == GanttJobsPrediction.moldable_id)
.filter(Resource.id == GanttJobsResource.resource_id)
.filter(Resource.id >= GanttJobsResource.resource_id)
.filter(Resource.id < GanttJobsResource.resource_id + GanttJobsResource.span)
.filter(Resource.state == "Alive")
.all()
)
Expand Down

0 comments on commit 5dfddcf

Please sign in to comment.