Bird
0
0

If you configure periodic tasks in Celery Beat but do not start the Celery Beat service, what is the expected behavior?

medium📝 component behavior Q5 of 15
Django - Celery and Background Tasks
If you configure periodic tasks in Celery Beat but do not start the Celery Beat service, what is the expected behavior?
APeriodic tasks will not be scheduled or executed
BTasks will run once at startup and then stop
CTasks will execute only when manually triggered
DTasks will run but with unpredictable timing
Step-by-Step Solution
Solution:
  1. Step 1: Understand Celery Beat's role

    Celery Beat is responsible for scheduling periodic tasks.
  2. Step 2: Consequence of not running Beat

    Without Beat running, no periodic schedules are sent to workers.
  3. Step 3: Resulting behavior

    Periodic tasks will not be triggered or executed automatically.
  4. Final Answer:

    Periodic tasks will not be scheduled or executed -> Option A
  5. Quick Check:

    Beat must run to schedule periodic tasks [OK]
Quick Trick: Without Beat running, periodic tasks won't run [OK]
Common Mistakes:
MISTAKES
  • Assuming workers schedule tasks themselves
  • Thinking tasks run once without Beat
  • Believing tasks run unpredictably without Beat

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Django Quizzes