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

fix(worker): work with booked job #3397

merged 3 commits into from
Oct 4, 2018

Conversation

yesnault
Copy link
Member

@yesnault yesnault commented Oct 3, 2018

don't allow worker to work on another job if it was created to work on one specified job

this will fix a bunch of issue on worker using pre-requisite service & model options

Signed-off-by: Yvonnick Esnault yvonnick.esnault@corp.ovh.com

don't allow worker to work on another job if it was created to work on one specified job

this will fix a bunch of issue on worker using pre-requisite service & model options

Signed-off-by: Yvonnick Esnault <yvonnick.esnault@corp.ovh.com>
@yesnault
Copy link
Member Author

yesnault commented Oct 3, 2018

do not merge yet, need some rework

Signed-off-by: Yvonnick Esnault <yvonnick.esnault@corp.ovh.com>
@yesnault
Copy link
Member Author

yesnault commented Oct 3, 2018

rework done

return true, sdk.WrapError(err, "takeWorkflowJob> Unable to take workflow node run job. This worker can work on another job.")
if w.bookedWJobID == job.ID {
return false, sdk.WrapError(err, "takeWorkflowJob> Unable to take workflow node run job. This worker can't work on another job.")
} else {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove else

Signed-off-by: Yvonnick Esnault <yvonnick.esnault@corp.ovh.com>
@yesnault yesnault changed the title fix(worker): worker life fix(worker): work with booked job Oct 4, 2018
@ovh ovh deleted a comment from ovh-cds Oct 4, 2018
@fsamin fsamin merged commit 2469fbc into master Oct 4, 2018
@yesnault yesnault deleted the ye-book-wk branch October 16, 2018 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants