amoghrajesh commented on PR #48607:
URL: https://github.com/apache/airflow/pull/48607#issuecomment-2768427348
Stil doesn't seem to fix it well. Let me do the other kind of check instead
here.
```
______ TestDag.test_bulk_write_to_db_max_active_runs[running-False-None]
_______
airflow-core/tests/unit/models/test_dag.py:853: in
test_bulk_write_to_db_max_active_runs
assert (current_time - model.next_dagrun) <= timedelta(hours=30)
E AssertionError: assert (datetime.datetime(2025, 4, 1, 7, 5, 32, 193080,
tzinfo=Timezone('UTC')) - datetime.datetime(2025, 3, 31, 0, 0,
tzinfo=Timezone('UTC'))) <= datetime.timedelta(days=1, seconds=21600)
E + where datetime.datetime(2025, 3, 31, 0, 0, tzinfo=Timezone('UTC')) =
<DAG: test_scheduler_verify_max_active_runs>.next_dagrun
E + and datetime.timedelta(days=1, seconds=21600) = timedelta(hours=30)
----------------------------- Captured stdout call
-----------------------------
[2025-04-01T07:05:32.170+0000] {dag.py:1867} INFO - Sync 1 DAGs
[2025-04-01T07:05:32.175+0000] {collection.py:81} INFO - Creating ORM DAG
for test_scheduler_verify_max_active_runs
[2025-04-01T07:05:32.181+0000] {dag.py:2417} INFO - Setting next_dagrun for
test_scheduler_verify_max_active_runs to 2025-03-31T00:00:00+00:00,
run_after=2025-04-01T00:00:00+00:00
------------------------------ Captured log call
-------------------------------
INFO airflow.models.dag:dag.py:1867 Sync 1 DAGs
INFO airflow.dag_processing.collection:collection.py:81 Creating ORM DAG
for test_scheduler_verify_max_active_runs
INFO airflow.models.dag:dag.py:2417 Setting next_dagrun for
test_scheduler_verify_max_active_runs to 2025-03-31T00:00:00+00:00,
run_after=2025-04-01T00:00:00+00:00
_______ TestDag.test_bulk_write_to_db_max_active_runs[queued-False-None]
_______
airflow-core/tests/unit/models/test_dag.py:853: in
test_bulk_write_to_db_max_active_runs
assert (current_time - model.next_dagrun) <= timedelta(hours=30)
E AssertionError: assert (datetime.datetime(2025, 4, 1, 7, 5, 33, 417336,
tzinfo=Timezone('UTC')) - datetime.datetime(2025, 3, 31, 0, 0,
tzinfo=Timezone('UTC'))) <= datetime.timedelta(days=1, seconds=21600)
E + where datetime.datetime(2025, 3, 31, 0, 0, tzinfo=Timezone('UTC')) =
<DAG: test_scheduler_verify_max_active_runs>.next_dagrun
E + and datetime.timedelta(days=1, seconds=21600) = timedelta(hours=30)
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]