mirror of
https://github.com/ansible/awx.git
synced 2026-01-22 23:18:03 -03:30
fix busted flake8
This commit is contained in:
parent
cd21dd69f5
commit
b4b261b918
@ -127,7 +127,7 @@ class AWXConsumerRedis(AWXConsumerBase):
|
||||
res = json.loads(res[1])
|
||||
self.process_task(res)
|
||||
except redis.exceptions.RedisError:
|
||||
time_to_sleep = min(time_to_sleep*2, 30)
|
||||
time_to_sleep = min(time_to_sleep * 2, 30)
|
||||
logger.exception(f"encountered an error communicating with redis. Reconnect attempt in {time_to_sleep} seconds")
|
||||
time.sleep(time_to_sleep)
|
||||
except (json.JSONDecodeError, KeyError):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user