MCPcopy
hub / github.com/celery/celery / __repr__

Method __repr__

celery/canvas.py:2333–2345  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2331 task.set_immutable(immutable)
2332
2333 def __repr__(self):
2334 if self.body:
2335 if isinstance(self.body, _chain):
2336 return remove_repeating_from_task(
2337 self.body.tasks[0]['task'],
2338 '%({} | {!r})'.format(
2339 self.body.tasks[0].reprcall(self.tasks),
2340 chain(self.body.tasks[1:], app=self._app),
2341 ),
2342 )
2343 return '%' + remove_repeating_from_task(
2344 self.body['task'], self.body.reprcall(self.tasks))
2345 return f'<chord without body: {self.tasks!r}>'
2346
2347 @cached_property
2348 def app(self):

Callers

nothing calls this directly

Calls 4

reprcallMethod · 0.80
chainClass · 0.70
formatMethod · 0.45

Tested by

no test coverage detected