MCPcopy Index your code
hub / github.com/celery/celery / fast_trace_task

Function fast_trace_task

celery/app/trace.py:757–776  ·  view source on GitHub ↗
(task, uuid, request, body, content_type,
                    content_encoding, loads=loads_message, _loc=None,
                    hostname=None, **_)

Source from the content-addressed store, hash-verified

755
756
757def fast_trace_task(task, uuid, request, body, content_type,
758 content_encoding, loads=loads_message, _loc=None,
759 hostname=None, **_):
760 _loc = _localized if not _loc else _loc
761 embed = None
762 tasks, accept, hostname = _loc
763 if content_type:
764 args, kwargs, embed = loads(
765 body, content_type, content_encoding, accept=accept,
766 )
767 else:
768 args, kwargs, embed = body
769 request.update({
770 'args': args, 'kwargs': kwargs,
771 'hostname': hostname, 'is_eager': False,
772 }, **embed or {})
773 R, I, T, Rstr = tasks[task].__trace__(
774 uuid, args, kwargs, request,
775 )
776 return (1, R, T) if I else (0, Rstr, T)
777
778
779def report_internal_error(task, exc):

Calls 1

updateMethod · 0.45

Tested by 2

test_fast_trace_taskMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…