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

Method __init__

celery/canvas.py:944–951  ·  view source on GitHub ↗
(self, *tasks, **options)

Source from the content-addressed store, hash-verified

942 return cls(tasks, app=app, **d['options'])
943
944 def __init__(self, *tasks, **options):
945 tasks = (regen(tasks[0]) if len(tasks) == 1 and is_list(tasks[0])
946 else tasks)
947 super().__init__('celery.chain', (), {'tasks': tasks}, **options
948 )
949 self._use_link = options.pop('use_link', None)
950 self.subtask_type = 'chain'
951 self._frozen = None
952
953 def __call__(self, *args, **kwargs):
954 if self.tasks:

Callers

nothing calls this directly

Calls 3

regenFunction · 0.90
__init__Method · 0.45
popMethod · 0.45

Tested by

no test coverage detected