Skip to content

add progress bar and status for preparing datasets - #2435

Draft
cnuart wants to merge 2 commits into
masterfrom
2311-add-progress-bar-and-designated-status-for-preparing-datasets-step-in-simulation-card-for-geant-4
Draft

cnuart wants to merge 2 commits into
masterfrom
2311-add-progress-bar-and-designated-status-for-preparing-datasets-step-in-simulation-card-for-geant-4

Conversation

@cnuart

@cnuart cnuart commented Oct 10, 2026 •

Copy link
Copy Markdown

This pull request introduces a new mechanism for tracking and displaying the progress of dataset preparation for Geant4 local worker simulations. The changes span both the backend service logic and the frontend UI, enabling users to see more detailed, real-time feedback during the simulation's pending state, especially when datasets are being loaded or prepared.

Key changes include:

Frontend UI Enhancements

  • Added a new SimulationPreparation component in SimulationCardContent.tsx to visually display dataset preparation progress, including stage, counters, and active dataset information. This component is shown when a simulation is in the pending state and dataset preparation is in progress. [1] [2]
  • Updated the rendering logic in SimulationCardContent to conditionally show the new preparation progress UI based on simulation status and dataset preparation state. [1] [2]

Backend Service & Data Model Updates

  • Introduced the DatasetPreparationInfo type (and related types) to the shared response types, capturing detailed preparation progress, stage, and dataset information. This is now included in the job status responses. [1] [2]
  • Updated Geant4LocalWorkerSimulationService to track and report dataset preparation progress for each job by:
    • Storing a preparation phase in job metadata.
    • Implementing getDatasetPreparation, which computes the current preparation state and progress, including weighted progress across datasets.
    • Injecting datasetPreparation into all relevant job status responses, including paginated and batch queries. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]

These improvements provide users with clearer feedback about simulation preparation, especially for jobs that require significant dataset loading or initialization.

This branch has not been deployed

No deployments
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.

Add progress bar and designated status for preparing datasets step in simulation card for Geant 4

1 participant