-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[dashboard, supervisor, ws-proxy] Break redirect loop on failing workspaces starts #8125
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,7 +106,6 @@ const toStop = new DisposableCollection(); | |
|
||
//#region current-frame | ||
let current: HTMLElement = loading.frame; | ||
let stopped = false; | ||
let desktopRedirected = false; | ||
const nextFrame = () => { | ||
const instance = gitpodServiceClient.info.latestInstance; | ||
|
@@ -142,19 +141,6 @@ const toStop = new DisposableCollection(); | |
return document.body; | ||
} | ||
} | ||
if (instance.status.phase === 'stopped') { | ||
stopped = true; | ||
} | ||
if (stopped && ( | ||
instance.status.phase === 'preparing' || | ||
instance.status.phase === 'pending' || | ||
instance.status.phase === 'creating' || | ||
instance.status.phase === 'initializing')) { | ||
// reload the page if the workspace was restarted to ensure: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @geropl, how relevant is this removal? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @AlexTugarev see discussions here: #8125 (comment) I think it is the proper way to go. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Yes. as Anton pointed out:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We do it on purpose to remove dependencies from supervisor and loading screen. Now a user will need to reload explicitly. We add a new button for that on the loading screen. I think it is fine. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks, I missed that, as it was resolved. Nice and clean! |
||
// - graceful reconnection of IDEs | ||
// - new owner token is set | ||
window.location.href = startUrl.toString(); | ||
} | ||
} | ||
return loading.frame; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if previous instances is in
stopping
or never reachesstopped
, this reads like an dead end.assuming that we always have a single instance running per workspace, let's just focus on the status/phase of the new.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree in general, but think it's not super important. And has been like this for years.
But in light of this change we should watch more sure! 🙏