Sfoglia il codice sorgente

Pass additional options in Task.retry

Additional options like queue or routing_key were not being correctly passed to apply_async when a task is retried.
Simon Engledew 12 anni fa
parent
commit
6c1faced50
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      celery/app/task.py

+ 1 - 0
celery/app/task.py

@@ -565,6 +565,7 @@ class Task(object):
         S = self.subtask_from_request(
         S = self.subtask_from_request(
             request, args, kwargs,
             request, args, kwargs,
             countdown=countdown, eta=eta, retries=retries,
             countdown=countdown, eta=eta, retries=retries,
+            **options
         )
         )
 
 
         if max_retries is not None and retries > max_retries:
         if max_retries is not None and retries > max_retries: