You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "pierrejeambrun (via GitHub)" <gi...@apache.org> on 2025/03/28 13:10:25 UTC
[PR] Add missing clear to clear_all [airflow]
pierrejeambrun opened a new pull request, #48496:
URL: https://github.com/apache/airflow/pull/48496
Some tables are not cleared on `clear_all` which I find confusing.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add missing clear to clear_all [airflow]
Posted by "pierrejeambrun (via GitHub)" <gi...@apache.org>.
pierrejeambrun merged PR #48496:
URL: https://github.com/apache/airflow/pull/48496
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add missing clear to clear_all [airflow]
Posted by "pierrejeambrun (via GitHub)" <gi...@apache.org>.
pierrejeambrun commented on code in PR #48496:
URL: https://github.com/apache/airflow/pull/48496#discussion_r2018829531
##########
devel-common/src/tests_common/test_utils/db.py:
##########
@@ -352,5 +354,5 @@ def clear_all():
clear_db_connections(add_default_connections_back=True)
clear_db_deadline()
clear_dag_specific_permissions()
- if AIRFLOW_V_3_0_PLUS:
- clear_db_dag_bundles()
+ clear_db_dag_parsing_requests()
Review Comment:
Done thanks
##########
devel-common/src/tests_common/test_utils/db.py:
##########
@@ -352,5 +354,5 @@ def clear_all():
clear_db_connections(add_default_connections_back=True)
clear_db_deadline()
clear_dag_specific_permissions()
- if AIRFLOW_V_3_0_PLUS:
- clear_db_dag_bundles()
+ clear_db_dag_parsing_requests()
+ clear_db_dag_bundles()
Review Comment:
done thanks
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add missing clear to clear_all [airflow]
Posted by "pierrejeambrun (via GitHub)" <gi...@apache.org>.
pierrejeambrun commented on code in PR #48496:
URL: https://github.com/apache/airflow/pull/48496#discussion_r2018647080
##########
devel-common/src/tests_common/test_utils/db.py:
##########
@@ -335,7 +335,9 @@ def clear_dag_specific_permissions():
def clear_all():
clear_db_runs()
+ clear_db_backfills()
clear_db_assets()
+ clear_db_triggers()
Review Comment:
Is also cleared as part of `clear_db_runs` but association table is not, so for safety I added it too.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add missing clear to clear_all [airflow]
Posted by "pierrejeambrun (via GitHub)" <gi...@apache.org>.
pierrejeambrun commented on code in PR #48496:
URL: https://github.com/apache/airflow/pull/48496#discussion_r2018828564
##########
devel-common/src/tests_common/test_utils/db.py:
##########
@@ -352,5 +354,5 @@ def clear_all():
clear_db_connections(add_default_connections_back=True)
clear_db_deadline()
clear_dag_specific_permissions()
- if AIRFLOW_V_3_0_PLUS:
- clear_db_dag_bundles()
+ clear_db_dag_parsing_requests()
Review Comment:
Yep thanks, just saw the CI failing on compat checks.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add missing clear to clear_all [airflow]
Posted by "kaxil (via GitHub)" <gi...@apache.org>.
kaxil commented on code in PR #48496:
URL: https://github.com/apache/airflow/pull/48496#discussion_r2018811107
##########
devel-common/src/tests_common/test_utils/db.py:
##########
@@ -352,5 +354,5 @@ def clear_all():
clear_db_connections(add_default_connections_back=True)
clear_db_deadline()
clear_dag_specific_permissions()
- if AIRFLOW_V_3_0_PLUS:
- clear_db_dag_bundles()
+ clear_db_dag_parsing_requests()
+ clear_db_dag_bundles()
Review Comment:
I think you need to add them under `AIRFLOW_V_3_0_PLUS` since this affects Airflow 2.x tasks.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add missing clear to clear_all [airflow]
Posted by "kaxil (via GitHub)" <gi...@apache.org>.
kaxil commented on code in PR #48496:
URL: https://github.com/apache/airflow/pull/48496#discussion_r2018813724
##########
devel-common/src/tests_common/test_utils/db.py:
##########
@@ -352,5 +354,5 @@ def clear_all():
clear_db_connections(add_default_connections_back=True)
clear_db_deadline()
clear_dag_specific_permissions()
- if AIRFLOW_V_3_0_PLUS:
- clear_db_dag_bundles()
+ clear_db_dag_parsing_requests()
Review Comment:
```python
if AIRFLOW_V_3_0_PLUS:
clear_db_backfills()
clear_db_dag_bundles()
clear_db_dag_parsing_requests()
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org