-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
feat: Pause/Resume Deployments #2954
base: master
Are you sure you want to change the base?
feat: Pause/Resume Deployments #2954
Conversation
3c0a834
to
c5ee027
Compare
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.
@thorbenbelow Thank you for this update!
internal/dao/dp.go
Outdated
@@ -123,6 +123,30 @@ func (d *Deployment) Restart(ctx context.Context, path string) error { | |||
return err | |||
} | |||
|
|||
// Pause a Deployment | |||
func (d *Deployment) Pause(ctx context.Context, path string) error { |
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.
Given pause/resume are used in tandem, I think we could dry this up and use TogglePause(...) instead.
This will be inline with cronjobs and other resources where we offer toggling behavior
What do you think?
@thorbenbelow Looks like this has conflicts and needs TLC. Could you take another look? |
ba4e273
to
3d1920b
Compare
Hey @derailed, I followed your suggestion and aligned the behavior with existing toggle implementations. As a result, I removed the multi-selection switch since I felt it would have made things more confusing. Let me know if you have any further suggestions! |
Signed-off-by: Thorben Below <56894536+thorbenbelow@users.noreply.github.com>
3d1920b
to
99ab3cc
Compare
This PR adds a new feature requested in #2792.
Deployments can be paused and resumed.
Description
There is now a new column in the deployments view that shows if a deployment is paused.

Deployments can be paused or resumed using the


z
shortcut. The action depends on the current status of the deployment.When there are multiple deployments selected the user has to choose between pausing or resuming them. The default isPause
.