reenroll when failed

This commit is contained in:
2025-09-12 20:16:08 -03:00
parent e51964bc8b
commit 9fb1895557
4 changed files with 25 additions and 15 deletions

View File

@@ -54,6 +54,12 @@ def lambda_handler(event: EventBridgeEvent, context: LambdaContext) -> bool:
},
cond_expr='attribute_not_exists(sk)',
)
transact.delete(
key=KeyPair(
pk=new_image['id'],
sk='parent_vacancy',
),
)
except Exception:
return False
else: