-
Notifications
You must be signed in to change notification settings - Fork 93
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 submitted/running task owner/host on restart #2097
Fix submitted/running task owner/host on restart #2097
Conversation
bd3361c
to
aaceeeb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks OK, test passes in my environment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but one comment isn't clear.
kwargs["host"] = host | ||
except IOError: | ||
# Bad host, run the command any way, command will fail and | ||
# callback with due with it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"callback with due with it"??
Ensure that `itask.task_owner` and `itask.task_host` are set on restart. Previously, it only sets `itask.user_at_host` which is not enough for job management commands such as poll/kill. Remove `TaskProxy.user_at_host` as an attribute, as it duplicates the functionality of `TaskProxy.task_owner` and `TaskProxy.task_host` and confuses matter. Also fix diagnostic log after successful kill - it should not say retry after P0Y.
aaceeeb
to
aa61884
Compare
Comment fixed, branch rebased and squashed. |
Ensure that
itask.task_owner
anditask.task_host
are set on restart.Previously, it only set
itask.user_at_host
which was not enough forjob management commands such as poll/kill.
Remove
TaskProxy.user_at_host
as an attribute, as it duplicates thefunctionality of
TaskProxy.task_owner
andTaskProxy.task_host
andconfuses matter.
Also fix diagnostic log after successful kill - it should not say retry
after P0Y.