tirkarthi commented on issue #62118:
URL: https://github.com/apache/airflow/issues/62118#issuecomment-3920607985

   It seems when the `LatestOnlyOperator` is a not dynamic then map_index of -1 
is passed to downstream tasks. In case of dynamic tasks being dependent on 
`LatestOnlyOperator` it will try to skip `-1` which will not exist but in case 
of normal dependent then `-1` will be correct and as it's marked skipped the 
downstream though dynamic is also marked as skipped.
   
   ```
   [2026-02-18 17:42:54] INFO - Checking latest only with left_window: 
2026-01-03 01:00:00+00:00 right_window: 2026-01-05 01:00:00+00:00 now: 
2026-02-18 12:12:54.160606+00:00
   [2026-02-18 17:42:54] INFO - Not latest execution, skipping downstream.
   [2026-02-18 17:42:54] INFO - Branch into []
   [2026-02-18 17:42:54] INFO - Following branch set()
   [2026-02-18 17:42:54] INFO - Skipping tasks [('print_label', -1)]
   ```
   
   
https://github.com/apache/airflow/blob/0d3a0349023207c4b42a3a830d4ac233cb334c1f/providers/standard/src/airflow/providers/standard/utils/skipmixin.py#L180-L185


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