- Notifications
You must be signed in to change notification settings - Fork928
feat(cli): show queue position during workspace builds#12606
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Signed-off-by: Danny Kopping <danny@coder.com>
Signed-off-by: Danny Kopping <danny@coder.com>
Signed-off-by: Danny Kopping <danny@coder.com>
Signed-off-by: Danny Kopping <danny@coder.com>
e.t.Helper() | ||
timeout, cancel := context.WithTimeout(context.Background(), testutil.WaitMedium) | ||
defer cancel() | ||
returne.ExpectMatchContext(timeout, str) | ||
returnimpl(timeout, str) | ||
} | ||
// TODO(mafredri): Rename this to ExpectMatch when refactoring. |
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.
@mafredri not really sure what this TODO is about since both this and theExpectMatch
functions have lots of usage. Could you elaborate please?
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.
Essentially the non-context variant should be marked deprecated. All usage switched to context. Then delete the non-context one and rename this to not have context in the name.
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.
OK, is it because we need to be able to control the deadline?
I think I'll do that in a separate PR.
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.
LGTM 👍 Some suggestions below.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
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.
Nice! Feel free to ignore these nit picks. Happy weekend!
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Signed-off-by: Danny Kopping <danny@coder.com>
We are now showing queue position in the workspace list page, and also on the CI. A nice to have would be to add an expandable table that lists the jobs/workspaces currently in queue for each of them. |
Should be doable, but is out of scope for this issue. |
Uh oh!
There was an error while loading.Please reload this page.
Fixes#9434
Note for the reviewer:
stop
andstart
Each time the position in the queue changes, an update will be printed