MCPcopy
hub / github.com/celery/celery / maybe_call

Function maybe_call

celery/apps/multi.py:280–282  ·  view source on GitHub ↗
(fun, *args, **kwargs)

Source from the content-addressed store, hash-verified

278
279
280def maybe_call(fun, *args, **kwargs):
281 if fun is not None:
282 fun(*args, **kwargs)
283
284
285class MultiParser:

Callers 9

sendMethod · 0.85
_waitexecMethod · 0.85
handle_process_exitMethod · 0.85
start_nodeMethod · 0.85
send_allMethod · 0.85
restart_on_downMethod · 0.85
_stop_nodesMethod · 0.85
shutdown_nodesMethod · 0.85
getpidsMethod · 0.85

Calls 1

funFunction · 0.85

Tested by

no test coverage detected