Skip to content

fix(processing): refetch a job's details once it finishes - #958

Merged
PaulHax merged 1 commit into
Kitware:mainfrom
PaulHax:refresh-finished-job-log
Sep 21, 2026
Merged

PaulHax merged 1 commit into
Kitware:mainfrom
PaulHax:refresh-finished-job-log

Conversation

@PaulHax

@PaulHax PaulHax commented Sep 21, 2026

Copy link
Copy Markdown
Collaborator

Problem

Opening a job's Details in the Jobs panel fetches its log once and caches it. If the job was still running at that moment and then failed, the error box kept showing the log as it was when the row was expanded, often a traceback cut off before the line naming the error. Collapsing and re-expanding the row did not help; only reloading VolView did.

Change

  • Each detail request records whether the job had finished when it was issued.
  • When a job completes, a detail fetched while it was still running is dropped and fetched again. The provider's log is complete by the time it reports a job terminal. Until the final detail arrives, the error box shows the status's errorTail.
  • Only the latest request's response is kept, so a slow earlier response cannot replace the final log. Deleting or clearing a job still drops late responses.
  • Rows whose details were never opened fetch nothing extra, and failures the client synthesizes (job gone, polling gave up, expired session) do not refetch.
  • Shared test fixtures (registerFake, jobStatus) move into fakeProvider.ts.

Opening a running job's details cached the log as it was at that moment,
so a job that then failed kept showing a traceback cut off before the
error line until VolView was reloaded.

Record whether each detail request was issued before the job finished.
When the provider reports the job terminal, drop a detail fetched earlier
and fetch it again. Only the latest request's response is kept, so a slow
earlier response cannot replace the final log. Rows that were never
opened and synthesized failures fetch nothing.
@netlify

netlify Bot commented Sep 21, 2026

Copy link
Copy Markdown

Deploy Preview for volview-dev ready!

Name Link
🔨 Latest commit b460068
🔍 Latest deploy log https://app.netlify.com/projects/volview-dev/deploys/6ab15205a1ed9700087c749f
😎 Deploy Preview https://deploy-preview-958--volview-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@PaulHax
PaulHax merged commit c6da7ef into Kitware:main Sep 21, 2026
8 checks passed
@PaulHax
PaulHax deleted the refresh-finished-job-log branch September 21, 2026 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant