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

Let the client keep the session open when closing #409

Closed
wants to merge 1 commit into from

Conversation

ralt
Copy link
Contributor

@ralt ralt commented Oct 20, 2016

The use case is being able to restart a process (e.g. software upgrade)
and not losing the ephemeral nodes. The process can save the session id
and password in a file, reload them at boot time, and load the kazoo
client with the previous session id.

The use case is being able to restart a process (e.g. software upgrade)
and not losing the ephemeral nodes. The process can save the session id
and password in a file, reload them at boot time, and load the kazoo
client with the previous session id.
@@ -594,7 +597,10 @@ def stop(self):
return

self._stopped.set()
self._queue.append((CloseInstance, None))
if self._keep_session:
self._queue.append((None, None))
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it be better to use another named constant, instead of None here, something a little more obvious as to what this is doing?

@bbangert
Copy link
Member

This will need some tests before it can be merged, ideally something in the docs about it as well. I like the concept over all and think it's good for a new PR with tests/docs.

@jeffwidman
Copy link
Member

@bbangert If you think this is a good idea, why did you close the PR?

Normal etiquette on all the OSS projects I'm involved with is to at least ping the original PR author and ask if they're interested in updating it and only after a period of further radio silence to close it for inactivity.

@bbangert
Copy link
Member

bbangert commented Jun 1, 2017

Because GitHub provides no usable UX for me to track effectively which PR's had pings, which had no response, and which were updated. When over 50+ PR's are in the backlog, the entire repo unfortunately becomes unusable to an extent. I apologize for the close, as I was using it as a bad UX hack on GH so that I could see updated/new PR's ready for review.

@ralt
Copy link
Contributor Author

ralt commented Jun 1, 2017

The close was fine by me. It's not unusual to close a PR that hasn't gotten an update in 6 months, specifically stating that the feature would be accepted if the author is still interested in the involved work.

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.

4 participants