MCPcopy
hub / github.com/Bogdanp/dramatiq / wait

Method wait

dramatiq/composition.py:358–370  ·  view source on GitHub ↗

Block until all the jobs in the group have finished or until the timeout expires. Parameters: timeout(int): The maximum amount of time, in ms, to wait. Defaults to 10 seconds. Raises: ResultTimeout: When waiting times out.

(self, *, timeout=None)

Source from the content-addressed store, hash-verified

356 yield child.get_result(backend=backend, block=block, timeout=timeout)
357
358 def wait(self, *, timeout=None):
359 """Block until all the jobs in the group have finished or
360 until the timeout expires.
361
362 Parameters:
363 timeout(int): The maximum amount of time, in ms, to wait.
364 Defaults to 10 seconds.
365
366 Raises:
367 ResultTimeout: When waiting times out.
368 """
369 for _ in self.get_results(block=True, timeout=timeout): # pragma: no cover
370 pass

Calls 1

get_resultsMethod · 0.95