From 9f3bedba3a2a1523aa7347af5fdc252c989e8fbf Mon Sep 17 00:00:00 2001 From: Hank Shen Date: Wed, 24 Jan 2024 05:50:31 +0000 Subject: [PATCH] update --- application/library/service/service.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/application/library/service/service.go b/application/library/service/service.go index c8019c103..e0714c693 100644 --- a/application/library/service/service.go +++ b/application/library/service/service.go @@ -226,6 +226,9 @@ func (p *program) retryableRun() { result = `failed` } p.logger.Infof("Process execution result: %s", result) + if err != nil { + os.Exit(p.cmd.ProcessState.ExitCode()) + } } p.close() }()