You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Jarek Potiuk (Jira)" <ji...@apache.org> on 2019/10/28 08:29:00 UTC
[jira] [Updated] (AIRFLOW-5796) Error in SubdagOperator when
resetting DB
[ https://issues.apache.org/jira/browse/AIRFLOW-5796?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jarek Potiuk updated AIRFLOW-5796:
----------------------------------
Description:
There is an error when resetting DB. The migration here:
*cc1e65623dc7_add_max_tries_column_to_task_instance.py*.
Which reads DagBag and when reading the DagBag "cannot import tests/dags/test_clear_subdag.py" with the root cause:
*psycopg2.ProgrammingError: relation "slot_pool" does not exist*
*LINE 2: FROM slot_pool*
The problem is that SubDagOperator relies on slot_pool relation being present but it's not yet ready (because it is added in one of the later migrations).
It does not cause big problems (the error is caught and ignored and migration continue), however it's not really nice to see such error.
was:
There is an error when resetting DB. The migration here:
*cc1e65623dc7_add_max_tries_column_to_task_instance.py*.
Which reads DagBag and when reading the DagBag "cannot import tests/dags/test_clear_subdag.py" with the root cause:
*psycopg2.ProgrammingError: relation "slot_pool" does not exist*
*LINE 2: FROM slot_pool*
The problem is that SubDagOperator relies on slot_pool relation being present but it's not yet ready (because it is added in one of the later migrations).
> Error in SubdagOperator when resetting DB
> -----------------------------------------
>
> Key: AIRFLOW-5796
> URL: https://issues.apache.org/jira/browse/AIRFLOW-5796
> Project: Apache Airflow
> Issue Type: Improvement
> Components: operators
> Affects Versions: 2.0.0, 1.10.6
> Reporter: Jarek Potiuk
> Priority: Major
>
> There is an error when resetting DB. The migration here:
> *cc1e65623dc7_add_max_tries_column_to_task_instance.py*.
> Which reads DagBag and when reading the DagBag "cannot import tests/dags/test_clear_subdag.py" with the root cause:
> *psycopg2.ProgrammingError: relation "slot_pool" does not exist*
> *LINE 2: FROM slot_pool*
> The problem is that SubDagOperator relies on slot_pool relation being present but it's not yet ready (because it is added in one of the later migrations).
> It does not cause big problems (the error is caught and ignored and migration continue), however it's not really nice to see such error.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)