MCPcopy
hub / github.com/celery/celery / _make_lookup_key

Function _make_lookup_key

celery/utils/dispatch/signal.py:54–61  ·  view source on GitHub ↗
(receiver, sender, dispatch_uid)

Source from the content-addressed store, hash-verified

52
53
54def _make_lookup_key(receiver, sender, dispatch_uid):
55 if dispatch_uid:
56 return (dispatch_uid, _make_id(sender))
57 # Issue #9119 - retry-wrapped functions use the underlying function for dispatch_uid
58 elif hasattr(receiver, '_dispatch_uid'):
59 return (receiver._dispatch_uid, _make_id(sender))
60 else:
61 return (_make_id(receiver), _make_id(sender))
62
63
64NONE_ID = _make_id(None)

Callers 2

_connect_signalMethod · 0.85
disconnectMethod · 0.85

Calls 1

_make_idFunction · 0.85

Tested by

no test coverage detected