8000 fix(hooks): put the right status for outgoing hook · ovh/cds@b5de1c1 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit b5de1c1

Browse files
bnjjjrichardlt
authored andcommitted
fix(hooks): put the right status for outgoing hook
Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
1 parent a423ce2 commit b5de1c1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

engine/hooks/outgoing_hooks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ func (s *Service) doOutgoingWorkflowExecution(ctx context.Context, t *sdk.TaskEx
235235
}
236236

237237
callbackData.Log = fmt.Sprintf("Workflow %s/%s #%d.%d has been started", targetProject, targetWorkflow, targetRun.Number, targetRun.LastSubNumber)
238-
callbackData.Status = sdk.StatusDisabled
238+
callbackData.Status = sdk.StatusBuilding
239239
callbackData.WorkflowRunNumber = &targetRun.Number
240240

241241
// Post the callback

engine/worker/internal/take.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ func (w *CurrentWorker) Take(ctx context.Context, job sdk.WorkflowNodeJobRun) er
106106
log.Info(ctx, "takeWorkflowJob> Cannot send build result: HTTP %v - worker cancelled - giving up", lasterr)
107107
return nil
108108
}
109-
log.Warning(ctx, "takeWorkflowJob> Cannot send build result: HTTP %v - try: %d - new try in 15s", lasterr, try)
109+
log.Warning(ctx, "takeWorkflowJob> Cannot send build result for job id %d: HTTP %v - try: %d - new try in 15s", job.ID, lasterr, try)
110110
time.Sleep(15 * time.Second)
111111
}
112112
log.Error(ctx, "takeWorkflowJob> Could not send built result 10 times, giving up. job: %d", job.ID)

0 commit comments

Comments
 (0)
0