@@ -774,7 +774,7 @@ function schedule!(ctx, state, procs=procs_to_use(ctx))
774774
775775 for proc in local_procs
776776 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)
778778 if can_use
779779 has_cap, est_time_util, est_alloc_util, est_occupancy =
780780 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))
806806 cap, extra_util = nothing , nothing
807807 procs_found = false
808808 # 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)
810810 if can_use
811811 has_cap, est_time_util, est_alloc_util, est_occupancy =
812812 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))
832832 @goto pop_task
833833 end
834834
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)
836836 if can_use
837837 has_cap, est_time_util, est_alloc_util, est_occupancy =
838838 has_capacity (state, entry. proc, entry. gproc. pid, opts. time_util, opts. alloc_util, opts. occupancy, sig)
0 commit comments