Skip to content

DAG Run Started Time Appears To Move As the DAG executes, which leads to misleading durations #30656

Discussion options

You must be logged in to vote

Let me explain what happens when you clear a task:
If you have two tasks in your dag: t1 --> t2
When the first task succeeds but the second fails, the run state will be failed and you will have something like:

t1 -> (instant 1, instant 2), state success
t2 -> (instant 3, instant 4), state failed
dag run -> (start < instant 1, end > instant 4), state failed

When you clear the task t2, we reset the state and the dates of t2 and the dag run, and you will have something like:

t1 -> (instant 1, instant 2),  state success
t2 -> (None, None),  state None
dag run -> ( start > run first end, None), queued

Then when they finish:

t1 -> (instant 1, instant 2),  state success
t2 -> (t5 > run first e…

Replies: 6 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@potiuk
Comment options

potiuk Apr 15, 2023
Collaborator

@potiuk
Comment options

potiuk Apr 15, 2023
Collaborator

Answer selected by potiuk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 participants
Converted from issue

This discussion was converted from issue #30642 on April 15, 2023 07:46.