-
Notifications
You must be signed in to change notification settings - Fork 944
feat!: add ability to cancel pending workspace build #18713
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
ba41ae8
add support for canceling workspace builds with expect_state param (l…
kacpersaw c4ee5b6
Use single transaction for canceling workspace build
kacpersaw c49c33e
Fix lint problem in ut
kacpersaw ba1dbf3
add cancel confirmation dialog for workspace builds and add expect_st…
kacpersaw acffda6
Fix lint
kacpersaw b672d76
Merge branch 'main' into kacpersaw/cancel-pending-provisioner-jobs
kacpersaw 86a34df
Apply review suggestions
kacpersaw 42170ab
Fix unit test
kacpersaw 5db9d71
Apply review suggestions
kacpersaw 1ede20c
Fix typo
kacpersaw 2597615
Regenerate api types
kacpersaw 6c2d0cf
Fix typo
kacpersaw c800494
Merge branch 'main' into kacpersaw/cancel-pending-provisioner-jobs
kacpersaw c5cb203
Apply a new authorization check for GetProvisionerJobByIDForUpdate
kacpersaw 1de84cc
Apply a new authorization check for GetProvisionerJobByIDForUpdate
kacpersaw 17fb6a3
Apply FE review suggestions
kacpersaw 1b7b614
Apply review suggestions
kacpersaw 634f556
Refactor cancelWorkspaceBuild parameter handling
kacpersaw 4deace0
Fix lint
kacpersaw 43430fa
Update coderd/workspacebuilds.go
kacpersaw 6272d93
Extract cancel confirm dialog to a separate component
kacpersaw 4d4a01d
Merge branch 'main' into kacpersaw/cancel-pending-provisioner-jobs
kacpersaw File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix unit test
- Loading branch information
commit 42170ab888b48e0af250b3067b1919b9d731d01a
There are no files selected for viewing
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
Oops, something went wrong.
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.
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.
Does this have a chance to race against the job succeeding? The code for checking if the build is already done is before the code that checks the
expect_status
paramThere 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.
From my understanding - this job should stay in running state until cancel, because the test doesn't include ApplyComplete in ProvisionApply.
https://github.com/coder/coder/blob/main/provisioner/echo/serve.go#L194