Bird
0
0

In a Flask application using Celery, what is the primary function of Celery Beat?

easy📝 Conceptual Q1 of 15
Flask - Background Tasks
In a Flask application using Celery, what is the primary function of Celery Beat?
ATo schedule and send periodic tasks to Celery workers
BTo execute tasks asynchronously immediately
CTo manage database migrations
DTo serve static files efficiently
Step-by-Step Solution
Solution:
  1. Step 1: Understand Celery's components

    Celery workers execute tasks asynchronously.
  2. Step 2: Role of Celery Beat

    Celery Beat acts as a scheduler that sends tasks to workers at specified intervals.
  3. Final Answer:

    To schedule and send periodic tasks to Celery workers -> Option A
  4. Quick Check:

    Celery Beat schedules tasks, workers execute them [OK]
Quick Trick: Celery Beat schedules tasks; workers run them [OK]
Common Mistakes:
MISTAKES
  • Confusing Celery Beat with the worker process
  • Thinking Celery Beat executes tasks directly
  • Assuming Celery Beat manages Flask routes

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Flask Quizzes