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

progress messages for jupyterhub 0.9 #153

Merged
merged 10 commits into from
May 24, 2018
Prev Previous commit
Next Next commit
Add timeout for reflector watcher stream
  • Loading branch information
clkao committed May 10, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 84a05ef05f29155726c0657b6f22781e65a32fe3
3 changes: 2 additions & 1 deletion kubespawner/reflector.py
Original file line number Diff line number Diff line change
@@ -148,8 +148,8 @@ def _watch_and_update(self):
update' cycle on them), we should be ok!
"""
cur_delay = 0.1
self.log.info("watching for %s with label selector %s / field selector %s in namespace %s", self.kind, self.label_selector, self.field_selector, self.namespace)
while True:
self.log.info("watching for %s with label selector %s / field selector %s in namespace %s", self.kind, self.label_selector, self.field_selector, self.namespace)
w = watch.Watch()
try:
resource_version = self._list_and_update()
@@ -162,6 +162,7 @@ def _watch_and_update(self):
label_selector=self.label_selector,
field_selector=self.field_selector,
resource_version=resource_version,
timeout_seconds=10,
):
cur_delay = 0.1
resource = ev['object']