MCPcopy Index your code
hub / github.com/dmlc/dgl / close

Method close

python/dgl/distributed/dist_context.py:194–200  ·  view source on GitHub ↗

Close worker pool

(self)

Source from the content-addressed store, hash-verified

192 self.task_queues[i].put((MpCommand.CALL_BARRIER, tuple()))
193
194 def close(self):
195 """Close worker pool"""
196 for i in range(self.num_workers):
197 self.task_queues[i].put(
198 (MpCommand.FINALIZE_POOL, tuple()), block=False
199 )
200 time.sleep(0.5) # Fix for early python version
201
202 def join(self):
203 """Join the close process of worker pool"""

Callers 9

get_local_usable_addrFunction · 0.45
finalize_workerFunction · 0.45
downloadMethod · 0.45
downloadMethod · 0.45
rep_per_nodeFunction · 0.45
explain_nodeMethod · 0.45
explain_graphMethod · 0.45
explain_nodeMethod · 0.45
explain_graphMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected