DagRun start_date is being reset after clearing the task. Any alternative? #25440
Replies: 3 comments 5 replies
-
@ephraimbuddy could you please share your thoughts? |
Beta Was this translation helpful? Give feedback.
-
Any update on this? I currently use a custom operator as a workaround to capture an unchanging start_date, but it would simplify my DAGs greatly if there was a way to get this information directly. |
Beta Was this translation helpful? Give feedback.
-
We are currently having issues as well with this behavior. |
Beta Was this translation helpful? Give feedback.
-
Hey 👋
I was trying to get the "physical" execution date of the dag (i.e the actual time when the dag was triggered, nothing to do with the data interval or the schedule). If I recall correctly in the previous versions
dag_run.start_date
was a reliable way to get that timestampt. I observed that it was the same for all tasks and attempts within the same dag run (doesn't matter if it's manual or scheduled it always represents the time when dag was physically triggered).However, I just realized that in one of the updates (maybe related to this #18708)) this behavior is changed. When a task fails and I clear it the start_date of the dag is changing. Logically, this does not make sense to me because
start_date
is a property ofdag_run
and it's something that already happened.Beta Was this translation helpful? Give feedback.
All reactions