canonical / canonical/pycloudlib
Consistent approach to 'wait' methods
Open
- 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
Assessment
This issue has not been assessed yet.