Add better cache invalidation for history (#1838)

Co-authored-by: Muhammed Salih Altun <muhammedsalihaltun@gmail.com>
This commit is contained in:
Shuchang Zheng
2025-02-25 12:59:26 -08:00
committed by GitHub
parent 13213d4523
commit ae9380f03f
5 changed files with 15 additions and 0 deletions

View File

@@ -136,6 +136,9 @@ function RunWorkflowForm({
queryClient.invalidateQueries({
queryKey: ["workflowRuns"],
});
queryClient.invalidateQueries({
queryKey: ["runs"],
});
navigate(
`/workflows/${workflowPermanentId}/${response.data.workflow_run_id}/overview`,
);

View File

@@ -69,6 +69,9 @@ function WorkflowRunStream() {
queryClient.invalidateQueries({
queryKey: ["workflowTasks", workflowRunId],
});
queryClient.invalidateQueries({
queryKey: ["runs"],
});
if (
message.status === "failed" ||
message.status === "terminated"