In Celery mode of airflow, does each worker only execute one task at a time? #52278
-
I have a question. In Celery mode of airflow, does each worker only execute one task at a time? Additional explanation: PythonOperator configures python_callable inside |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
One worker can also execute tasks concurrently, you can define this via AIRFLOW__CELERY__WORKER_CONCURRENCY and AIRFLOW__CORE__MAX_ACTIVE_TASKS_PER_DAG. What type of variable are you referring to? Airflow variables |
Beta Was this translation helpful? Give feedback.
Depends on your celery setting. By default Celery creates separate fork for each worker process - so they are separate interpreters, but you can run celery in the mode that they are sharing interpreter (
solo
mode). Up to you. Look it up in celery docs