diff --git a/src-docs/openstack_manager.py.md b/src-docs/openstack_manager.py.md index 5986a340f..bba865542 100644 --- a/src-docs/openstack_manager.py.md +++ b/src-docs/openstack_manager.py.md @@ -101,7 +101,7 @@ Create an instance config from charm data. --- - + ## function `create_instance` diff --git a/src/openstack_manager.py b/src/openstack_manager.py index 3cffd8027..6728c19b7 100644 --- a/src/openstack_manager.py +++ b/src/openstack_manager.py @@ -26,7 +26,7 @@ from github_client import GithubClient from github_type import RunnerApplication from runner_type import GithubPath -from utilities import execute_command +from utilities import execute_command, retry logger = logging.getLogger(__name__) @@ -232,6 +232,7 @@ class InstanceLaunchError(Exception): """Exception representing an error during instance launch process.""" +@retry(tries=5, delay=5, max_delay=60, backoff=2, local_logger=logger) def create_instance( cloud_config: dict[str, dict], instance_config: InstanceConfig,