canonical / canonical/pycloudlib

Consistent approach to 'wait' methods

Open
#72 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
22
Forks
42
PR merge metrics
No merged PRs in 30d

Description

We have a number of wait methods including
wait, wait_for_execute, wait_for_cloudinit, wait_for_delete, wait_for_stop, ...

Most of these wait for some arbitrary amount of time and retry and different wait intervals. We should refactor all of these methods to take an optional timeout argument with a consistent default and a consistent retry interval.

Personally, I'd consider [the retry library](https://pypi.org/project/retry/) or an API that looks like it.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.