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

Ignore jobs associated with unknown JobRequests #2356

Merged
merged 2 commits into from Nov 21, 2022

Conversation

evansd
Copy link
Contributor

@evansd evansd commented Nov 21, 2022

We're planning to update the job-runner sync protocol such that it syncs the state of all active jobs, where active now means those jobs which job-server thinks are active and those which job-runner thinks are active. This should make the sync process even more robust against "non-standard" things happening (i.e. us fiddling with the state of jobs).

This changes means that it's no longer a protocol violation for job-runner to tell job-server about a job which job-server didn't explicitly ask about. If this happens (which I don't expect it to really) we should log it but not treat it as an error.

These variables were being set inside the loop but the logging happened
outside, so only values from the last loop iteration were captured.
We're planning to update the job-runner sync protocol such that it syncs
the state of all active jobs, where active now means those jobs which
job-server thinks are active _and_ those which job-runner thinks are
active. This should make the sync process even more robust against
"non-standard" things happening (i.e. us fiddling with the state of
jobs).

This changes means that it's no longer a protocol violation for
job-runner to tell job-server about a job which job-server didn't
explicity ask about. If this happens (which I don't expect it to really)
we should log it but not treat it as an error.
@evansd evansd merged commit 5e54230 into main Nov 21, 2022
@evansd evansd deleted the evansd/handle-unknown-job-request-ids branch November 21, 2022 15:17
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

2 participants