Adjust sleeps.
This commit is contained in:
parent
5f77ff4ef0
commit
46b9519ee0
@ -163,11 +163,11 @@ class BlockCache(object):
|
|||||||
if not any(errs):
|
if not any(errs):
|
||||||
return tuple(item['result'] for item in result)
|
return tuple(item['result'] for item in result)
|
||||||
if any(err.get('code') == -28 for err in errs):
|
if any(err.get('code') == -28 for err in errs):
|
||||||
msg = 'daemon still warming up...'
|
msg = 'daemon still warming up.'
|
||||||
secs = 10
|
secs = 30
|
||||||
else:
|
else:
|
||||||
msg = 'daemon errors: {}'.format(errs)
|
msg = 'daemon errors: {}'.format(errs)
|
||||||
secs = 1
|
secs = 3
|
||||||
|
|
||||||
self.logger.error('{}. Sleeping {:d}s and trying again...'
|
self.logger.error('{}. Sleeping {:d}s and trying again...'
|
||||||
.format(msg, secs))
|
.format(msg, secs))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user