Beispiel #1
0
 def __init__(self, header, body=None, **options):
     Signature.__init__(self, "celery.chord", (),
                      {"header": regen(header),
                       "body": maybe_subtask(body)}, options)
     self.subtask_type = "chord"
Beispiel #2
0
 def __init__(self, task, it, n, **options):
     Signature.__init__(self, "celery.chunks", (),
             {"task": task, "it": regen(it), "n": n}, **options)
Beispiel #3
0
 def __init__(self, *tasks, **options):
     tasks = regen(tasks[0] if len(tasks) == 1 and is_list(tasks[0])
                            else tasks)
     Signature.__init__(self, "celery.group", (), {"tasks": tasks}, options)
     self.tasks, self.subtask_type = tasks, "group"
Beispiel #4
0
 def __init__(self, task, it, **options):
     Signature.__init__(self, self._task_name, (),
             {"task": task, "it": regen(it)}, **options)