-
Notifications
You must be signed in to change notification settings - Fork 14.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cleared tasks get literal 'DagRunState.QUEUED' instead of the value 'queued' #17879
Comments
The proposed solution is wrong. The |
So the problem is we’re storing wrong values to the database? The change should be done at the boundary between the db and Pythron if that’s the case. Either we call |
I haven't been able to reproduce yet with Postgres & Python 3.8, what Metadata Database do you use Postgres, MySQL or SQLite? And which version |
If you are using MySQL with |
#17886 Should fix it -- can you try it with that change @tothandor please |
same as apache#13278 but for `DagRunState` introduced in apache#16854 closes apache#17879
It's working now. Thanks a lot! 🙏 |
same as apache/airflow#13278 but for `DagRunState` introduced in apache/airflow#16854 closes apache/airflow#17879 (cherry picked from commit a3f9c690aa80d12ff1d5c42eaaff4fced07b9429) GitOrigin-RevId: 66dcbf429aee0316e206a1d6ded089580fc94ddf
same as apache/airflow#13278 but for `DagRunState` introduced in apache/airflow#16854 closes apache/airflow#17879 GitOrigin-RevId: a3f9c690aa80d12ff1d5c42eaaff4fced07b9429
same as apache/airflow#13278 but for `DagRunState` introduced in apache/airflow#16854 closes apache/airflow#17879 GitOrigin-RevId: a3f9c690aa80d12ff1d5c42eaaff4fced07b9429
same as apache/airflow#13278 but for `DagRunState` introduced in apache/airflow#16854 closes apache/airflow#17879 GitOrigin-RevId: a3f9c690aa80d12ff1d5c42eaaff4fced07b9429
same as apache/airflow#13278 but for `DagRunState` introduced in apache/airflow#16854 closes apache/airflow#17879 GitOrigin-RevId: a3f9c690aa80d12ff1d5c42eaaff4fced07b9429
same as apache/airflow#13278 but for `DagRunState` introduced in apache/airflow#16854 closes apache/airflow#17879 GitOrigin-RevId: a3f9c690aa80d12ff1d5c42eaaff4fced07b9429
same as apache/airflow#13278 but for `DagRunState` introduced in apache/airflow#16854 closes apache/airflow#17879 GitOrigin-RevId: a3f9c690aa80d12ff1d5c42eaaff4fced07b9429
same as apache/airflow#13278 but for `DagRunState` introduced in apache/airflow#16854 closes apache/airflow#17879 GitOrigin-RevId: a3f9c690aa80d12ff1d5c42eaaff4fced07b9429
same as apache/airflow#13278 but for `DagRunState` introduced in apache/airflow#16854 closes apache/airflow#17879 GitOrigin-RevId: a3f9c690aa80d12ff1d5c42eaaff4fced07b9429
same as apache/airflow#13278 but for `DagRunState` introduced in apache/airflow#16854 closes apache/airflow#17879 GitOrigin-RevId: a3f9c690aa80d12ff1d5c42eaaff4fced07b9429
same as apache/airflow#13278 but for `DagRunState` introduced in apache/airflow#16854 closes apache/airflow#17879 GitOrigin-RevId: a3f9c690aa80d12ff1d5c42eaaff4fced07b9429
same as apache/airflow#13278 but for `DagRunState` introduced in apache/airflow#16854 closes apache/airflow#17879 GitOrigin-RevId: a3f9c690aa80d12ff1d5c42eaaff4fced07b9429
Apache Airflow version
2.1.3 (latest released)
Operating System
CentOS Stream release 8
Versions of Apache Airflow Providers
None of them are relevant
Deployment
Virtualenv installation
Deployment details
mkdir /srv/airflow
cd /srv/airflow
virtualenv venv
source venv/bin/activate
pip install apache-airflow==2.1.3
AIRFLOW_HOME and AIRFLOW_CONFIG is specified via environment variables in /etc/sysconfig/airflow, which is in turn used as EnvironmentFile in systemd service files.
systemctl start airflow-{scheduler,webserver,kerberos}
Python version: 3.9.2
LocalExecutors are used
What happened
On the Web UI, I had cleared failed tasks, which have been cleared properly, but the DagRun became black with a literal value of "DagRunState.QUEUED", therefore it can't be scheduled again.
What you expected to happen
DagRun state should be 'queued'.
How to reproduce
Just clear any tasks on the Web UI. I wonder how could it be that nobody noticed this issue.
Anything else
Here's a patch to fix it. Maybe the str method should be different, or the database/persistence layer should handle this, but for now, this solves the problem.
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: