BigData / Apache Airflow Interview Questions
How does the CeleryExecutor work in Airflow?
The CeleryExecutor uses Celery (a distributed task queue) to distribute Airflow task execution across multiple worker nodes. The workflow is:
- The Scheduler submits tasks to a message broker (Redis or RabbitMQ).
- Celery workers pick up tasks from the queue and execute them.
- Results and state are written back to the metadata database.
This allows horizontal scaling of workers. You can start as many workers as needed with airflow celery worker. A Flower dashboard (airflow celery flower) provides monitoring of the Celery cluster.
More Related questions...