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

Reset cylc monitor if connection lost #2420

Merged
merged 1 commit into from
Sep 13, 2017
Merged

Conversation

hjoliver
Copy link
Member

@hjoliver hjoliver commented Sep 7, 2017

This makes cylc monitor reset and reconnect if a suite shuts down and restarts on a different port.

@hjoliver hjoliver added the bug Something is wrong :( label Sep 7, 2017
@hjoliver hjoliver added this to the next release milestone Sep 7, 2017
@hjoliver hjoliver self-assigned this Sep 7, 2017
bin/cylc-monitor Outdated
@@ -138,7 +141,8 @@ The USER_AT_HOST argument allows suite selection by 'cylc scan' output:
self.pclient.get_suite_state_summary())
except Exception as exc:
print >> sys.stderr, "\033[1;37;41mERROR\033[0m", str(exc)
self.pclient.reset()
Copy link
Member Author

Choose a reason for hiding this comment

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

(I suspect client reset use to have the desired effect - although I haven't looked back to check - but now it is just a stub)

@matthewrmshin
Copy link
Contributor

PEP8 issue + a hanging test.

@hjoliver
Copy link
Member Author

hjoliver commented Sep 7, 2017

Rebased, deconflicted, and pep8'ed.

@dvalters dvalters merged commit aeb4c35 into cylc:master Sep 13, 2017
@hjoliver hjoliver deleted the monitor-reset branch December 4, 2017 09:15
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