예제 #1
0
파일: canvas.py 프로젝트: tothegump/celery
 def __repr__(self):
     if self.body:
         if isinstance(self.body, _chain):
             return remove_repeating_from_task(
                 self.body.tasks[0]['task'],
                 '%({0} | {1!r})'.format(
                     self.body.tasks[0].reprcall(self.tasks),
                     chain(self.body.tasks[1:], app=self._app),
                 ),
             )
         return '%' + remove_repeating_from_task(
             self.body['task'], self.body.reprcall(self.tasks))
     return '<chord without body: {0.tasks!r}>'.format(self)
예제 #2
0
파일: canvas.py 프로젝트: theq629/celery
 def __repr__(self):
     if self.body:
         if isinstance(self.body, _chain):
             return remove_repeating_from_task(
                 self.body.tasks[0]['task'],
                 '%({0} | {1!r})'.format(
                     self.body.tasks[0].reprcall(self.tasks),
                     chain(self.body.tasks[1:], app=self._app),
                 ),
             )
         return '%' + remove_repeating_from_task(
             self.body['task'], self.body.reprcall(self.tasks))
     return '<chord without body: {0.tasks!r}>'.format(self)
예제 #3
0
파일: canvas.py 프로젝트: tothegump/celery
 def __repr__(self):
     if not self.tasks:
         return '<{0}@{1:#x}: empty>'.format(
             type(self).__name__, id(self))
     return remove_repeating_from_task(
         self.tasks[0]['task'],
         ' | '.join(repr(t) for t in self.tasks))
예제 #4
0
파일: canvas.py 프로젝트: theq629/celery
 def __repr__(self):
     if not self.tasks:
         return '<{0}@{1:#x}: empty>'.format(
             type(self).__name__, id(self))
     return remove_repeating_from_task(
         self.tasks[0]['task'],
         ' | '.join(repr(t) for t in self.tasks))
예제 #5
0
파일: canvas.py 프로젝트: tothegump/celery
 def __repr__(self):
     if self.tasks:
         return remove_repeating_from_task(
             self.tasks[0]['task'],
             'group({0.tasks!r})'.format(self))
     return 'group(<empty>)'
예제 #6
0
파일: canvas.py 프로젝트: theq629/celery
 def __repr__(self):
     if self.tasks:
         return remove_repeating_from_task(
             self.tasks[0]['task'],
             'group({0.tasks!r})'.format(self))
     return 'group(<empty>)'