MCPcopy
hub / github.com/celery/celery / __init__

Method __init__

celery/canvas.py:2043–2051  ·  view source on GitHub ↗
(self, header, body=None, task='celery.chord',
                 args=None, kwargs=None, app=None, **options)

Source from the content-addressed store, hash-verified

2041 return (header, body), kwargs
2042
2043 def __init__(self, header, body=None, task='celery.chord',
2044 args=None, kwargs=None, app=None, **options):
2045 args = args if args else ()
2046 kwargs = kwargs if kwargs else {'kwargs': {}}
2047 super().__init__(task, args,
2048 {**kwargs, 'header': _maybe_group(header, app),
2049 'body': maybe_signature(body, app=app)}, app=app, **options
2050 )
2051 self.subtask_type = 'chord'
2052
2053 def __call__(self, body=None, **options):
2054 return self.apply_async((), {'body': body} if body else {}, **options)

Callers

nothing calls this directly

Calls 3

_maybe_groupFunction · 0.85
maybe_signatureFunction · 0.85
__init__Method · 0.45

Tested by

no test coverage detected