This is an automated email from the ASF dual-hosted git repository. jscheffl pushed a commit to branch v3-0-test in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v3-0-test by this push: new d8991b3a010 [v3-0-test] Reset grid dagrun query cache on trigger so that the new dagrun is fetched. (#52918) (#52919) d8991b3a010 is described below commit d8991b3a010ddfdcce594ac01bb78b1f5af7dd48 Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> AuthorDate: Sat Jul 5 23:36:23 2025 +0200 [v3-0-test] Reset grid dagrun query cache on trigger so that the new dagrun is fetched. (#52918) (#52919) (cherry picked from commit 671d561462685c7c17af4e2051ed972db623200c) Co-authored-by: Karthikeyan Singaravelan <tir.kar...@gmail.com> --- airflow-core/src/airflow/ui/src/queries/useTrigger.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/airflow-core/src/airflow/ui/src/queries/useTrigger.ts b/airflow-core/src/airflow/ui/src/queries/useTrigger.ts index cce546e0ad3..e033fe31a1d 100644 --- a/airflow-core/src/airflow/ui/src/queries/useTrigger.ts +++ b/airflow-core/src/airflow/ui/src/queries/useTrigger.ts @@ -26,6 +26,7 @@ import { useDagServiceRecentDagRunsKey, UseGridServiceGridDataKeyFn, UseTaskInstanceServiceGetTaskInstancesKeyFn, + UseGridServiceGetGridRunsKeyFn, } from "openapi/queries"; import type { DagRunTriggerParams } from "src/components/TriggerDag/TriggerDAGForm"; import { toaster } from "src/components/ui"; @@ -41,6 +42,7 @@ export const useTrigger = ({ dagId, onSuccessConfirm }: { dagId: string; onSucce UseDagRunServiceGetDagRunsKeyFn({ dagId }, [{ dagId }]), UseTaskInstanceServiceGetTaskInstancesKeyFn({ dagId, dagRunId: "~" }, [{ dagId, dagRunId: "~" }]), UseGridServiceGridDataKeyFn({ dagId }, [{ dagId }]), + UseGridServiceGetGridRunsKeyFn({ dagId }, [{ dagId }]), ]; await Promise.all(queryKeys.map((key) => queryClient.invalidateQueries({ queryKey: key })));