1111 my_errormonitor (t) = nothing
1212end
1313
14- struct ElasticManager <: ClusterManager
15- active:: Dict{Int, WorkerConfig} # active workers
16- pending:: Channel{TCPSocket} # to be added workers
14+ struct ElasticManager <: Distributed. ClusterManager
15+ active:: Dict{Int, Distributed. WorkerConfig} # active workers
16+ pending:: Channel{Sockets. TCPSocket} # to be added workers
1717 terminated:: Set{Int} # terminated worker ids
1818 topology:: Symbol
1919 sockname
@@ -38,7 +38,7 @@ struct ElasticManager <: ClusterManager
3838
3939 t1 = @async begin
4040 while true
41- let s = accept (l_sock)
41+ let s = Sockets . accept (l_sock)
4242 t2 = @async process_worker_conn (lman, s)
4343 my_errormonitor (t2)
4444 end
@@ -83,7 +83,7 @@ function process_pending_connections(mgr::ElasticManager)
8383 while true
8484 wait (mgr. pending)
8585 try
86- addprocs (mgr; topology= mgr. topology)
86+ Distributed . addprocs (mgr; topology= mgr. topology)
8787 catch e
8888 showerror (stderr , e)
8989 Base. show_backtrace (stderr , Base. catch_backtrace ())
@@ -144,7 +144,7 @@ function elastic_worker(cookie, addr="127.0.0.1", port=9009; stdout_to_master=tr
144144 c = connect (addr, port)
145145 write (c, rpad (cookie, HDR_COOKIE_LEN)[1 : HDR_COOKIE_LEN])
146146 stdout_to_master && redirect_stdout (c)
147- start_worker (c, cookie)
147+ Distributed . start_worker (c, cookie)
148148end
149149
150150function get_connect_cmd (em:: ElasticManager ; absolute_exename= true , same_project= true )
0 commit comments