SIBTAIN-ASAD opened a new pull request, #72659:
URL: https://github.com/apache/airflow/pull/72659

   ## Why
   
   `DateTimeSensorAsync` can be configured with `start_from_trigger=True`, but 
templated `target_time` values are rendered after Dag parsing. Calling 
`_moment` in `__init__` therefore parses the raw Jinja expression and crashes 
the Dag.
   
   ## What changed
   
   Keep triggerer-start for concrete targets, but fall back to the normal 
worker path when `target_time` contains a Jinja template. The worker path 
resolves the rendered datetime before constructing `DateTimeTrigger`.
   
   Fixes #70284
   
   ## Verification
   
   - `uv run --project providers/standard pytest 
providers/standard/tests/unit/standard/sensors/test_date_time.py -xvs` (16 
passed)
   - `uvx prek run --stage pre-commit --files 
providers/standard/src/airflow/providers/standard/sensors/date_time.py 
providers/standard/tests/unit/standard/sensors/test_date_time.py`
   


-- 
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]

Reply via email to