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

6.11.x - Fix submitted/running task owner/host on restart #2098

Merged

Conversation

matthewrmshin
Copy link
Contributor

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.

(Back port of #2097.)

@matthewrmshin matthewrmshin added the bug Something is wrong :( label Jan 4, 2017
@matthewrmshin matthewrmshin added this to the next release milestone Jan 4, 2017
@matthewrmshin matthewrmshin self-assigned this Jan 4, 2017
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.

Good, one comment to fix.

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.

Ditto my comment in #2097

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.
@matthewrmshin matthewrmshin force-pushed the 6.11.x-fix-restart-task-owner-host branch from b9329c8 to 3aa3d64 Compare January 9, 2017 08:47
@matthewrmshin
Copy link
Contributor Author

Comment fixed, branch rebased and squashed.

@matthewrmshin
Copy link
Contributor Author

@oliver-sanders please sanity check.

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 sane to me.

@oliver-sanders oliver-sanders merged commit 65fef1c into cylc:6.11.x Jan 9, 2017
@matthewrmshin matthewrmshin deleted the 6.11.x-fix-restart-task-owner-host branch January 9, 2017 10:33
@matthewrmshin matthewrmshin modified the milestones: next release, cylc-6.11.4 Jan 10, 2017
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