MCPcopy Create free account
hub / github.com/celery/celery / unlock_graph

Function unlock_graph

examples/resultgraph/tasks.py:77–86  ·  view source on GitHub ↗
(result, callback,
                 interval=1, propagate=False, max_retries=None)

Source from the content-addressed store, hash-verified

75
76@task()
77def unlock_graph(result, callback,
78 interval=1, propagate=False, max_retries=None):
79 if result.ready():
80 second_level_res = result.get()
81 if second_level_res.ready():
82 with allow_join_result():
83 signature(callback).delay(list(joinall(
84 second_level_res, propagate=propagate)))
85 else:
86 unlock_graph.retry(countdown=interval, max_retries=max_retries)
87
88
89@task()

Callers

nothing calls this directly

Calls 7

allow_join_resultFunction · 0.90
signatureFunction · 0.90
joinallFunction · 0.85
retryMethod · 0.80
readyMethod · 0.45
getMethod · 0.45
delayMethod · 0.45

Tested by

no test coverage detected