Anyone know where I can add extra celery configs to airflow celery executor? For instance I want http://docs.celeryproject.org/en/latest/userguide/configuration.html#worker-pool-restarts this property but how do I allow extra celery properties..
相关问题
- flask application with watchdog observer
- Error message 'No handlers could be found for
- How to define operations of an STFP Operator on Ai
- How to export large data from Postgres to S3 using
- Airflow - Experimental API returning 405s for some
相关文章
- Airflow depends_on_past explanation
- How to delete XCOM objects once the DAG finishes i
- getting error Received unregistered task of type &
- Get Exception details on Airflow on_failure_callba
- How to run one airflow task and all its dependenci
- Running airflow tasks/dags in parallel
- External files in Airflow DAG
- Cannot run apache airflow after fresh install, pyt
Use the just-released Airflow 1.9.0 and this is now configurable.
In airflow.cfg there is this line:
which points to a python file from the import path. The current default version can is https://github.com/apache/incubator-airflow/blob/1.9.0/airflow/config_templates/default_celery.py
If you need a setting that isn't tweakable via that file then create a new module, say 'my_celery_config.py':
and put it in your AIRFLOW_HOME dir (i.e. along side the dags/ folder) and then set
celery_config_options = my_celery_config.CELERY_CONFIG
in the config.