Skip to content

A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.

TypeScript fluxerfluxerapp

fix(rexctl): restart even when a service is unhealthy

Hampusd978b3604636
diff --git a/fluxer_rexctl/cmd/lifecycle.go b/fluxer_rexctl/cmd/lifecycle.go
index 20eda4d36..49dee9328 100644
--- a/fluxer_rexctl/cmd/lifecycle.go
+++ b/fluxer_rexctl/cmd/lifecycle.go
@@ -653,7 +653,7 @@ func newRestartCmd(app *App) *cobra.Command {
}
return app.Change(ctx, inst, func(e *engine.Engine) error {
return app.UI.Step(ctx, "Restarting Fluxer", func(ctx context.Context, s *ui.Step) error {
- if _, err := deploy.Apply(ctx, inst, e, deploy.ApplyOptions{Pull: true, OnEvent: app.progress(s, "Restarting")}); err != nil {
+ if _, err := deploy.Apply(ctx, inst, e, deploy.ApplyOptions{Pull: true, OnEvent: app.progress(s, "Restarting")}); err != nil && engine.ClassOf(err) != engine.ClassDependencyFailed {
return readyFailure(ctx, inst, e.Named(inst.Project(), inst.Dir), err)
}
p, err := deploy.Load(ctx, inst, e)