From ebd4a14dbcac93f7977d677cd3a6ab31f5f18d86 Mon Sep 17 00:00:00 2001 From: Gustav Behm Date: Sat, 21 Sep 2024 14:23:28 +0200 Subject: [PATCH] Increase wait timeout when importing the snapshot --- openbsd | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/openbsd b/openbsd index 27536fa..a2f50f9 100755 --- a/openbsd +++ b/openbsd @@ -1821,7 +1821,13 @@ class AWS: iid = is_rsp["ImportTaskId"] self.logger.debug(f"waiting for snapshot import to complete: {iid}") - self.ec2.get_waiter("snapshot_imported").wait(ImportTaskIds=[iid]) + self.ec2.get_waiter("snapshot_imported").wait( + ImportTaskIds=[iid], + WaiterConfig={ + 'Delay': 30, + 'MaxAttempts': 80, + }, + ) dist_rsp = self.ec2.describe_import_snapshot_tasks(ImportTaskIds=[iid]) si = None