8000 fix(engine): fix some logs by yesnault · Pull Request #6677 · ovh/cds · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix(engine): fix some logs #6677

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions engine/api/workflow/execute_node_job_run.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,13 @@ func UpdateNodeJobRunStatus(ctx context.Context, db gorpmapper.SqlExecutorWithTx
return nil, sdk.WrapError(err, "Cannot select status from workflow_node_run_job node job run %d", job.ID)
}

log.Info(ctx, "job %d current status %q, new status %q", job.ID, status, currentStatus)
log.Info(ctx, "job %d current status %q, new status %q", job.ID, currentStatus, status)

switch status {
case sdk.StatusBuilding:
if currentStatus != sdk.StatusWaiting {
return nil, sdk.WithStack(fmt.Errorf("cannot update status of WorkflowNodeJobRun %d to %s, expected current status %s, got %s",
job.ID, status, sdk.StatusWaiting, currentStatus))
job.ID, status, sdk.StatusWaiting, status))
}
job.Start = time.Now()
job.Status = status
Expand Down
0