Draft
Conversation
Collaborator
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
🎩 To tophat this PR:You can add the following URL parameter to your browser to tophat this PR: |
a3a7339 to
0c63b8c
Compare
0c63b8c to
cf7e982
Compare
Mbeaulne
commented
Mar 20, 2026
| ), | ||
| enabled: isRunComplete, | ||
| staleTime: TWENTY_FOUR_HOURS_IN_MS, | ||
| refetchOnWindowFocus: false, |
Collaborator
Author
There was a problem hiding this comment.
🤖 This is an AI-generated code review comment.
The URL construction here duplicates fetchContainerExecutionState from executionService.ts, which already does exactly this:
const fetchContainerExecutionState = async (
executionId: string,
backendUrl: string,
): Promise<GetContainerExecutionStateResponse> => {
const url = `${backendUrl}/api/executions/${executionId}/container_state`;
return fetchWithErrorHandling(url);
};If the endpoint changes, there would be two places to update. Consider importing and reusing the existing function:
import { fetchContainerExecutionState } from "@/services/executionService";
// in queries:
queryFn: () => fetchContainerExecutionState(executionId, backendUrl),Note: fetchContainerExecutionState isn't currently exported, so you'd need to add the export. Alternatively, extract the URL pattern to a shared constant.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Added cache status indicators and information throughout the pipeline execution interface. Tasks that used cached results now display a teal "Cached" badge alongside existing status indicators. The task details panel shows cache status, original completion time, and links to the source run when applicable. This enhancement helps users understand when tasks are reusing previous execution results.
Related Issue and Pull requests
Type of Change
Checklist
Screenshots (if applicable)
Test Instructions
Additional Comments
The cache detection logic compares task completion time with run creation time - if a task completed before the run started, it's considered cached. The feature only activates for completed runs to avoid unnecessary API calls during active execution.