ENH: Add ability for snapshot restore to report progress to the frontend#55
Merged
jbellister-slac merged 6 commits intomainfrom Apr 17, 2026
Merged
Conversation
8d0283e to
5fc9f23
Compare
5fc9f23 to
7ddd04e
Compare
…d (PVs that failed to restore in this case)
YektaY
reviewed
Apr 8, 2026
Collaborator
YektaY
left a comment
There was a problem hiding this comment.
This overall looks good to me, I have just one comment at the moment
…arq cannot enqueue the task for any reason
YektaY
approved these changes
Apr 17, 2026
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
Updates the snapshot restore endpoint to send progress updates to the frontend.
Similar to creating a snapshot, adds a job to the queue for restoring data from the snapshot id requested by the user. Does this asynchronously by default so that the GUI remains unblocked, and the user can continue to navigate through the application while the restore task is running.
Returns regular status updates of the job in progress as well as the final results of all successful and failed writes.
See slaclab/react-squirrel#85 for the associated frontend changes
Motivation
slaclab/react-squirrel#49
Screenshots
Fully successful restore:
restore_success.mp4
Restore with a few failures:
restore_partial.mp4
Pre-merge checklist