You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. bring back the snapshot import ui in the `/settings/snapshots` page, which is not linked from anywhere but still works if needed
2. add a cancel button for in-progress imports
3. manually tested that the cancellation works by doing a large import against local big-brain and canceling it from the dashboard before it finishes.
4. the cli showed the error immediately because it's listening to the import status. meanwhile the import continues in the background on the server, but when it gets to the end it throws an error because SnapshotImportModel makes sure you can't transition from Failed => Completed.
5. made sure the state is checked transactionally with finalizing the import, because otherwise the worker ends up committing the import and then throwing an error.
6. added test
it's somewhat inefficient to continue the import in the background even after it has been cancelled. we could potentially make it more efficient with a subscription in the worker, but this solution works for now.
GitOrigin-RevId: 75fa683872bce02cda6eeccfed66ff44cb38fc42
0 commit comments