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

Extend KazooRetry to support time deadlines #102

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
warn about old-style retry params for eventual removal
  • Loading branch information
novas0x2a committed Jul 16, 2013
commit 6775406e0bc5403c1ad1e63687df2bf802a61440
6 changes: 6 additions & 0 deletions kazoo/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import logging
import os
import re
import warnings
from collections import defaultdict, deque
from functools import partial
from os.path import split
Expand Down Expand Up @@ -205,6 +206,11 @@ def __init__(self, hosts='127.0.0.1:2181',
for key in retry_keys:
try:
retry_keys[key] = kwargs.pop(key)
warnings.warn('Passing retry configuration param %s to the'
' client directly is deprecated, please pass a'
' configured retry object (using param %s)' % (
key, _RETRY_COMPAT_MAPPING[key]),
DeprecationWarning, stacklevel=2)
except KeyError:
pass

Expand Down