Skip to content

Commit

Permalink
Merge pull request ansible#4287 from ryanpetrello/flake8-whoops
Browse files Browse the repository at this point in the history
fix busted flake8
  • Loading branch information
ryanpetrello authored May 1, 2020
2 parents cd21dd6 + b4b261b commit 9c5f04b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion awx/main/dispatch/worker/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def run(self, *args, **kwargs):
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):
Expand Down

0 comments on commit 9c5f04b

Please sign in to comment.