Skip to content

Conversation

@tirkarthi
Copy link
Contributor

Whenever the dagrun is marked as success or failed the corresponding tasks in running or no state will be marked as success or skipped. During clear run the key is invalidated to fetch the updated task state. Similarly on marking the dagrun the key can be used to invalidate the query to fetch updated task states.

const queryKeys = [
[useTaskInstanceServiceGetTaskInstancesKey],
UseDagServiceGetDagDetailsKeyFn({ dagId }),
UseDagRunServiceGetDagRunKeyFn({ dagId, dagRunId }),
[useDagRunServiceGetDagRunsKey],
];

@boring-cyborg boring-cyborg bot added the area:UI Related to UI/UX. For Frontend Developers. label Jan 23, 2025
@tirkarthi tirkarthi force-pushed the refresh-ti-mark-dagrun branch from 3abb947 to d30f7c9 Compare January 25, 2025 09:48
@tirkarthi tirkarthi force-pushed the refresh-ti-mark-dagrun branch from d30f7c9 to 89acd50 Compare January 30, 2025 03:22
Copy link
Contributor

@bbovenzi bbovenzi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's just get this in and we can clear up our invalidating later.

@bbovenzi bbovenzi merged commit 8811a65 into apache:main Feb 5, 2025
35 checks passed
insomnes pushed a commit to insomnes/airflow that referenced this pull request Feb 6, 2025
…k instance states. (apache#45977)

* Invalidate task instance query on marking dagrun state to refetch task instance states.

* Invalidate task instances only for dag and dagrun. Invalidate clear run on dagrun marking to ensure updated values are fetched.

* Use constant for key.
niklasr22 pushed a commit to niklasr22/airflow that referenced this pull request Feb 8, 2025
…k instance states. (apache#45977)

* Invalidate task instance query on marking dagrun state to refetch task instance states.

* Invalidate task instances only for dag and dagrun. Invalidate clear run on dagrun marking to ensure updated values are fetched.

* Use constant for key.
ambika-garg pushed a commit to ambika-garg/airflow that referenced this pull request Feb 17, 2025
…k instance states. (apache#45977)

* Invalidate task instance query on marking dagrun state to refetch task instance states.

* Invalidate task instances only for dag and dagrun. Invalidate clear run on dagrun marking to ensure updated values are fetched.

* Use constant for key.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UI Related to UI/UX. For Frontend Developers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants