Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/deploy-cloud-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ on:
- dev/config.cloudrun.toml
- src/**
- operator-mcp/**
- web/**
- .github/workflows/deploy-cloud-run.yml

concurrency:
Expand Down
14 changes: 11 additions & 3 deletions web/src/revka/pages/WorkflowRuns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -295,9 +295,17 @@ export default function WorkflowRuns() {
if (!cancelled) setPinnedDefinition(null);
});
}
// Keep polling while the run is still in flight. Treat any
// unrecognized status as terminal so we don't loop forever.
if (run.status === 'running' || run.status === 'pending') {
// Keep polling while the run is still in flight. 'paused' is
// in-flight too: a run pauses at a human-approval gate and, once
// approved, advances to the next step — which may be another gate.
// Without polling 'paused', the second approval never surfaces until
// a manual browser refresh. Treat any unrecognized status as terminal
// so we don't loop forever.
if (
run.status === 'running' ||
run.status === 'pending' ||
run.status === 'paused'
) {
scheduleNext(POLL_INTERVAL_MS);
} else if (!TERMINAL_STATUSES.has(run.status)) {
return;
Expand Down
Loading