We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac9fec5 commit cc9f890Copy full SHA for cc9f890
sdk.go
@@ -94,20 +94,18 @@ func (GRPCServer) ExecuteJob(ctx context.Context, j *proto.Job) (*proto.JobResul
94
if err != nil {
95
// Check if job wants to force exit pipeline.
96
// We will exit the pipeline but not mark as 'failed'.
97
- if err == ErrorExitPipeline {
98
- r.ExitPipeline = true
99
- } else {
+ if err != ErrorExitPipeline {
100
// We got an error. Pipeline is now marked as 'failed'.
101
102
r.Failed = true
103
}
104
105
// Set log message and job id
+ r.ExitPipeline = true
106
r.Message = err.Error()
107
r.UniqueId = job.job.UniqueId
108
109
110
- return r, err
+ return r, nil
111
112
113
// Serve initiates the gRPC Server and listens.
0 commit comments