@@ -774,7 +774,7 @@ function schedule!(ctx, state, procs=procs_to_use(ctx))
774
774
775
775
for proc in local_procs
776
776
gproc = get_parent (proc)
777
- can_use, scope = can_use_proc (task, gproc, proc, opts, scope)
777
+ can_use, scope = can_use_proc (state, task, gproc, proc, opts, scope)
778
778
if can_use
779
779
has_cap, est_time_util, est_alloc_util, est_occupancy =
780
780
has_capacity (state, proc, gproc. pid, opts. time_util, opts. alloc_util, opts. occupancy, sig)
@@ -806,7 +806,7 @@ function schedule!(ctx, state, procs=procs_to_use(ctx))
806
806
cap, extra_util = nothing , nothing
807
807
procs_found = false
808
808
# N.B. if we only have one processor, we need to select it now
809
- can_use, scope = can_use_proc (task, entry. gproc, entry. proc, opts, scope)
809
+ can_use, scope = can_use_proc (state, task, entry. gproc, entry. proc, opts, scope)
810
810
if can_use
811
811
has_cap, est_time_util, est_alloc_util, est_occupancy =
812
812
has_capacity (state, entry. proc, entry. gproc. pid, opts. time_util, opts. alloc_util, opts. occupancy, sig)
@@ -832,7 +832,7 @@ function schedule!(ctx, state, procs=procs_to_use(ctx))
832
832
@goto pop_task
833
833
end
834
834
835
- can_use, scope = can_use_proc (task, entry. gproc, entry. proc, opts, scope)
835
+ can_use, scope = can_use_proc (state, task, entry. gproc, entry. proc, opts, scope)
836
836
if can_use
837
837
has_cap, est_time_util, est_alloc_util, est_occupancy =
838
838
has_capacity (state, entry. proc, entry. gproc. pid, opts. time_util, opts. alloc_util, opts. occupancy, sig)
0 commit comments