You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we are using this plugin with airflow 1.10.4 python36 , Resulting into scheduler unhealthy
The scheduler fails to start when using this plugin
This has been experienced when Airflow is configured to use a plugin executor. For CSRF this plugin imports airflow/www/app.py, which happens to also import airflow/jobs. When the scheduler starts, it will import airflow/jobs which will import the plugin executor. This creates a circular import, crashing the scheduler.
So we tried changing to this from flask_wtf.csrf import CSRFProtect csrf = CSRFProtect()
Scheduler is stable and dags are running , But the plugin POST calls are failing with <title>400 Bad Request</title> Bad Request The CSRF token is missing.
Plugin works with other airflow and python versions like 1.10.4-python27 and 1.10.6-python36
Any idea how to resolve this issue ?
The text was updated successfully, but these errors were encountered:
ashb
linked a pull request
Jul 15, 2020
that will
close
this issue
we are using this plugin with airflow 1.10.4 python36 , Resulting into scheduler unhealthy
The scheduler fails to start when using this plugin
This has been experienced when Airflow is configured to use a plugin executor. For CSRF this plugin imports airflow/www/app.py, which happens to also import airflow/jobs. When the scheduler starts, it will import airflow/jobs which will import the plugin executor. This creates a circular import, crashing the scheduler.
So we tried changing to this
from flask_wtf.csrf import CSRFProtect csrf = CSRFProtect()
Scheduler is stable and dags are running , But the plugin POST calls are failing with
<title>400 Bad Request</title> Bad Request The CSRF token is missing.
Plugin works with other airflow and python versions like 1.10.4-python27 and 1.10.6-python36
Any idea how to resolve this issue ?
The text was updated successfully, but these errors were encountered: