(self, *tasks, **options)
| 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: |