Django - Celery and Background Tasks
You want to define a Celery task that retries automatically up to 3 times if it fails. Which addition to the task definition is correct?
autoretry_for=(Exception,), retry_kwargs={'max_retries': 3} in the @shared_task decorator correctly uses autoretry_for with max_retries in retry_kwargs.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions