Skip to content
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

fix(worker): work with booked job #3397

Merged
merged 3 commits into from
Oct 4, 2018
Merged
Changes from 1 commit
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
2 changes: 2 additions & 0 deletions engine/worker/take_workflow_node_run_job.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ func (w *currentWorker) takeWorkflowJob(ctx context.Context, job sdk.WorkflowNod
t := ""
if w.bookedWJobID == job.ID {
t = ", this was my booked job"
} else if w.bookedWJobID > 0 {
return false, sdk.WrapError(err, "takeWorkflowJob> Unable to take workflow node run job. This worker didn't find booked job, can't work on another job.")
}
log.Info("takeWorkflowJob> Job %d taken%s", job.ID, t)

Expand Down