File tree 2 files changed +7
-5
lines changed
2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -316,11 +316,16 @@ Windows.
316
316
"""
317
317
function require (mod:: Symbol )
318
318
_require (mod)
319
- # After successfully loading notify downstream consumers
319
+ # After successfully loading, notify downstream consumers
320
320
if toplevel_load[] && myid () == 1 && nprocs () > 1
321
321
# broadcast top-level import/using from node 1 (only)
322
322
@sync for p in procs ()
323
- p == 1 || @async remotecall_fetch (_require, p, mod)
323
+ p == 1 && continue
324
+ @async remotecall_wait (p) do
325
+ if ! isbindingresolved (Main, mod) || ! isdefined (Main, mod)
326
+ _require (mod)
327
+ end
328
+ end
324
329
end
325
330
end
326
331
for callback in package_callbacks
Original file line number Diff line number Diff line change @@ -1750,9 +1750,6 @@ rmprocs(npids)
1750
1750
Base. cluster_cookie (" foobar" ) # custom cookie
1751
1751
npids = addprocs_with_testenv (WorkerArgTester (` --worker=foobar` , false ))
1752
1752
@test remotecall_fetch (myid, npids[1 ]) == npids[1 ]
1753
- ====== =
1754
- end
1755
- >>>>>> > include: assume that shared file systems exist for clusters
1756
1753
1757
1754
# Run topology tests last after removing all workers, since a given
1758
1755
# cluster at any time only supports a single topology.
You can’t perform that action at this time.
0 commit comments