Flask - Background Tasks
Identify the error in this Celery task code:
@celery_app.task
def divide(x, y):
return x / y
result = divide.delay(10, 0).get()@celery_app.task
def divide(x, y):
return x / y
result = divide.delay(10, 0).get()x by y. Here, y is zero.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions