Skip to content

Commit

Permalink
fix(api): bad query for worker table
Browse files Browse the repository at this point in the history
  • Loading branch information
richardlt authored and bnjjj committed Jan 14, 2020
1 parent caadf75 commit 9d6b3cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/api/workflow/dao_node_run_job.go
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ func replaceWorkflowJobRunInQueue(db gorp.SqlExecutor, wNodeJob sdk.WorkflowNode
return sdk.WrapError(err, "Unable to set workflow_node_run_job id %d with status %s", wNodeJob.ID, sdk.StatusWaiting)
}

query = "UPDATE worker SET status = $2, job_run_id = NULL where action_build_id = $1"
query = "UPDATE worker SET status = $2, job_run_id = NULL where job_run_id = $1"
if _, err := db.Exec(query, wNodeJob.ID, sdk.StatusDisabled); err != nil {
return sdk.WrapError(err, "Unable to set workers")
}
Expand Down

0 comments on commit 9d6b3cc

Please sign in to comment.