Move backoff classes to the Zulip API
(imported from commit 76c5d499874f0397c505ab3fcda631a1a46847b6)
This commit is contained in:
parent
ee04f7b3e8
commit
41a782e011
3 changed files with 37 additions and 35 deletions
|
@ -28,7 +28,6 @@ import traceback
|
|||
import signal
|
||||
|
||||
from zephyr_mirror_backend import parse_args
|
||||
from zephyr_mirror_backend import RandomExponentialBackoff
|
||||
|
||||
def die(signal, frame):
|
||||
# We actually want to exit, so run os._exit (so as not to be caught and restarted)
|
||||
|
@ -38,6 +37,9 @@ signal.signal(signal.SIGINT, die)
|
|||
|
||||
(options, args) = parse_args()
|
||||
|
||||
sys.path[:0] = [os.path.join(options.root_path, 'api')]
|
||||
from zulip import RandomExponentialBackoff
|
||||
|
||||
args = [os.path.join(options.root_path, "user_root", "zephyr_mirror_backend.py")]
|
||||
args.extend(sys.argv[1:])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue