Complete the code to import Celery in a Flask app.
from celery import [1]
You import Celery from the celery package to create tasks.
Complete the code to create a Celery instance with Flask app's config.
celery = Celery(__name__, broker=[1])The broker URL is usually stored in Flask app config under CELERY_BROKER_URL.
Fix the error in defining a Celery task decorator.
@celery.[1]The correct decorator to define a Celery task is @celery.task.
Fill both blanks to define a simple Celery task function.
@celery.[1] def [2](): return 'Hello from Celery!'
The decorator is @celery.task and the function name can be hello_task.
Fill all three blanks to create a Celery task that adds two numbers.
@celery.[1] def [2](a, b): return a [3] b
The decorator is @celery.task, the function name add_numbers, and the operator is + to add.
