DateTimeSensorAsync breaks if target_time is timezone-aware #29576
Labels
affected_version:2.5
Issues Reported for 2.5
area:core-operators
Operators, Sensors and hooks within Core Airflow
kind:bug
This is a clearly a bug
Apache Airflow version
2.5.1
What happened
DateTimeSensorAsync
fails with the following error iftarget_time
is aware:What you think should happen instead
Given the fact that
DateTimeSensor
correctly handles timezones, this seems like a bug.DateTimeSensorAsync
should be a drop-in replacement forDateTimeSensor
, and therefore should have the same timezone behavior.How to reproduce
This can also happen if the
target_time
is naive andcore.default_timezone = system
.Operating System
CentOS Stream 8
Versions of Apache Airflow Providers
N/A
Deployment
Other
Deployment details
Standalone
Anything else
This appears to be nearly identical to #24736. Probably worth checking other time-related sensors as well.
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: