File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -490,13 +490,14 @@ function addprocs_locked(manager::ClusterManager; kwargs...)
490
490
# call manager's `launch` is a separate task. This allows the master
491
491
# process initiate the connection setup process as and when workers come
492
492
# online
493
- t_launch = Threads. @spawn Threads. threadpool () launch (manager, params, launched, launch_ntfy)
493
+ # NOTE: Must be `@async`. See FIXME above
494
+ t_launch = @async launch (manager, params, launched, launch_ntfy)
494
495
495
496
@sync begin
496
497
while true
497
498
if isempty (launched)
498
499
istaskdone (t_launch) && break
499
- Threads . @spawn Threads . threadpool () begin
500
+ @async begin # NOTE: Must be `@async`. See FIXME above
500
501
sleep (1 )
501
502
notify (launch_ntfy)
502
503
end
@@ -506,7 +507,8 @@ function addprocs_locked(manager::ClusterManager; kwargs...)
506
507
if ! isempty (launched)
507
508
wconfig = popfirst! (launched)
508
509
let wconfig= wconfig
509
- Threads. @spawn Threads. threadpool () setup_launched_worker (manager, wconfig, launched_q)
510
+ # NOTE: Must be `@async`. See FIXME above
511
+ @async setup_launched_worker (manager, wconfig, launched_q)
510
512
end
511
513
end
512
514
end
You can’t perform that action at this time.
0 commit comments