mirror of
https://github.com/ansible/awx.git
synced 2026-01-16 04:10:44 -03:30
Merge pull request #4287 from ryanpetrello/flake8-whoops
fix busted flake8
This commit is contained in:
commit
9c5f04b1e0
@ -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