DateTimeSensor()
does not work with datetime
s rendered via render_template_as_native_obj=True
#38336
Closed
2 tasks done
Labels
Apache Airflow version
2.8.3
If "Other Airflow 2 version" selected, which one?
No response
What happened?
Running the following code produces an error:
Here's the full traceback:
The way to fix it is to add a
| string
filter to the Jinja:What you think should happen instead?
The operator should handle typing for the timestamp in
execute()
instead of in__init__
, so that runtime conversions can be properly handled.How to reproduce
See code example above.
Operating System
Not relevant
Versions of Apache Airflow Providers
No response
Deployment
Other
Deployment details
Deployment is not relevant.
Anything else?
This can also probably be removed this the code for
DateTimeSensorAsync
while I/we are at it:Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: