nclaeys commented on issue #35272:
URL: https://github.com/apache/airflow/issues/35272#issuecomment-1825680026
Yes you are right, but the crashing pipelines use a cron expression like "0
9,10 * * *", my first comment was more like what I expect when using timezones
and cron expression.
The crashing issue is caused by how you handle timezones, which you can
check by running the following test:
```
dag_bag = DagBag(resources_path())
dag = dag_bag.get_dag("demo")
now = pendulum.now()
before_dst = now.subtract(months=2)
result = dag.iter_dagrun_infos_between(
earliest=before_dst, latest=now
)
assert result is not None
```
If the dag I use has a timezone ("Europe/Brussels") and a cron expression as
specified this test never finishes. If I run it using UTC it does work
correctly.
--
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]