Skip to content

Commit

Permalink
Merge pull request #410 from ajkavanagh/hotfix-async-destroy-model
Browse files Browse the repository at this point in the history
Use aync retries in async code
  • Loading branch information
thedac committed Jan 21, 2021
2 parents 7d694ad + 363ff08 commit 5adf6b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zaza/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ async def async_destroy_model(model_name):
# raise an error. Even if the model has been destroyed, it's still hangs
# around in the .list_models() for a little while; retry until it goes
# away, or that fails.
for attempt in tenacity.Retrying(
async for attempt in tenacity.AsyncRetrying(
stop=tenacity.stop_after_attempt(20),
wait=tenacity.wait_exponential(
multiplier=1, min=2, max=20),
Expand Down

0 comments on commit 5adf6b3

Please sign in to comment.