Skip to content

Commit 32c301a

Browse files
JamesWrigleyjpsamaroo
authored andcommitted
Use procs() when initializing EAGER_CONTEXT
Using `myid()` with `workers()` meant that when the context was initialized with a single worker the processor list would be: `[OSProc(1), OSProc(1)]`. `procs()` will always include PID 1 and any other workers, which is what we want.
1 parent b0d2ad2 commit 32c301a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/sch/eager.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const EAGER_STATE = Ref{Union{ComputeState,Nothing}}(nothing)
66

77
function eager_context()
88
if EAGER_CONTEXT[] === nothing
9-
EAGER_CONTEXT[] = Context([myid(),workers()...])
9+
EAGER_CONTEXT[] = Context(procs())
1010
end
1111
return EAGER_CONTEXT[]
1212
end

0 commit comments

Comments
 (0)