Bird
0
0

Which component in Celery handles the execution of tasks in a Flask app?

easy📝 Conceptual Q2 of 15
Flask - Background Tasks
Which component in Celery handles the execution of tasks in a Flask app?
ATask scheduler
BFlask server
CMessage broker
DCelery worker
Step-by-Step Solution
Solution:
  1. Step 1: Identify Celery components

    Celery has workers that run tasks sent by the Flask app through the broker.
  2. Step 2: Determine who executes tasks

    The Celery worker is the process that actually runs the background tasks.
  3. Final Answer:

    Celery worker -> Option D
  4. Quick Check:

    Task execution = Celery worker [OK]
Quick Trick: Workers run tasks, brokers queue them [OK]
Common Mistakes:
MISTAKES
  • Confusing broker with worker
  • Thinking Flask server runs tasks
  • Assuming scheduler runs all tasks

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Flask Quizzes