Skip to content

Commit 39b823b

Browse files
committed
flakes
1 parent 8846e78 commit 39b823b

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

celery/app/builtins.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,6 @@ def run(self, header, body, partial_args=(), interval=None,
344344
app = self.app
345345
propagate = default_propagate if propagate is None else propagate
346346
group_id = uuid()
347-
AsyncResult = app.AsyncResult
348347

349348
# - convert back to group if serialized
350349
tasks = header.tasks if isinstance(header, group) else header

celery/canvas.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,6 @@ def freeze(self, _id=None, group_id=None, chord=None):
519519
new_tasks, results = [], []
520520
for task in self.tasks:
521521
task = maybe_signature(task, app=self._app).clone()
522-
topts = task.options
523522
results.append(task.freeze(group_id=group_id, chord=chord))
524523
new_tasks.append(task)
525524
self.tasks = self.kwargs['tasks'] = new_tasks
@@ -591,8 +590,8 @@ def type(self):
591590
return app.tasks['celery.chord']
592591

593592
def apply_async(self, args=(), kwargs={}, task_id=None,
594-
producer=None, publisher=None, connection=None,
595-
router=None, result_cls=None, **options):
593+
producer=None, publisher=None, connection=None,
594+
router=None, result_cls=None, **options):
596595
body = kwargs.get('body') or self.kwargs['body']
597596
kwargs = dict(self.kwargs, **kwargs)
598597
body = body.clone(**options)

0 commit comments

Comments
 (0)