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

Function _reprtask

celery/app/task.py:65–73  ·  view source on GitHub ↗
(task, fmt=None, flags=None)

Source from the content-addressed store, hash-verified

63
64
65def _reprtask(task, fmt=None, flags=None):
66 flags = list(flags) if flags is not None else []
67 flags.append('v2 compatible') if task.__v2_compat__ else None
68 if not fmt:
69 fmt = R_BOUND_TASK if task._app else R_UNBOUND_TASK
70 return fmt.format(
71 task, flags=_strflags(flags),
72 app=appstr(task._app) if task._app else None,
73 )
74
75
76def get_actual_ignore_result(task, req):

Callers 2

test_reprtask__no_fmtMethod · 0.90
__repr__Method · 0.85

Calls 3

_strflagsFunction · 0.85
appstrFunction · 0.85
formatMethod · 0.45

Tested by 1

test_reprtask__no_fmtMethod · 0.72