Flask - Background Tasks
Why is it important to use the
@celery_app.task(bind=True) decorator when defining tasks that need to retry on failure?@celery_app.task(bind=True) decorator when defining tasks that need to retry on failure?bind=True effectself), enabling use of methods like self.retry().self.retry() inside the task, which requires binding.bind=True gives task instance for retries [OK]bind=True to access self.retry() in tasks [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions