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 submitted/running task owner/host on restart #2097

Merged
merged 1 commit into from
Jan 9, 2017

Conversation

matthewrmshin
Copy link
Contributor

@matthewrmshin matthewrmshin commented Jan 3, 2017

Ensure that itask.task_owner and itask.task_host are set on restart.
Previously, it only set itask.user_at_host which was 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.

@matthewrmshin matthewrmshin added the bug Something is wrong :( label Jan 3, 2017
@matthewrmshin matthewrmshin added this to the next release milestone Jan 3, 2017
@matthewrmshin matthewrmshin self-assigned this Jan 3, 2017
@matthewrmshin matthewrmshin force-pushed the fix-restart-task-owner-host branch 5 times, most recently from bd3361c to aaceeeb Compare January 4, 2017 11:42
Copy link
Member

@oliver-sanders oliver-sanders left a 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.

Copy link
Member

@hjoliver hjoliver left a 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
Copy link
Member

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.
@matthewrmshin
Copy link
Contributor Author

Comment fixed, branch rebased and squashed.

@hjoliver hjoliver merged commit 5344eed into cylc:master Jan 9, 2017
@matthewrmshin matthewrmshin deleted the fix-restart-task-owner-host branch January 9, 2017 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is wrong :(
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants