mirror of
https://github.com/psviderski/uncloud.git
synced 2026-10-06 13:18:58 +00:00
fix(pre-deploy): progress event for stopping running hooks
This commit is contained in:
1 parent
0da9df17a4
commit
3e30a59d4c
1 file changed
+2
@@ -28,6 +28,8 @@ type StopPreDeployOperation struct {
|
||||
}
|
||||
|
||||
func (o *StopPreDeployOperation) Execute(ctx context.Context, cli Client) error {
|
||||
ctx = cliprogress.WithEventID(ctx,
|
||||
cliprogress.OldPreDeployHookEventID(o.Container.ServiceName(), o.Container.ID, o.MachineName))
|
||||
if err := cli.StopContainer(ctx, o.Container.ServiceID(), o.Container.ID, container.StopOptions{}); err != nil {
|
||||
if !errdefs.IsNotFound(err) {
|
||||
return fmt.Errorf("stop pre-deploy hook container '%s': %w", o.Container.ID, err)
|
||||
|
||||
Reference in new issue
Block a user