Skip to content

Conversation

appleboy
Copy link
Owner

@appleboy appleboy commented Apr 2, 2023

  • Add a new cli flag max-attempts with default value 200
  • Update run function to read max-attempts from the cli context
  • Replace svc.WaitUntilFunctionUpdated with svc.WaitUntilFunctionUpdatedWithContext
  • Use request.WithWaiterMaxAttempts to set max attempts in Exec function

refer to: appleboy/lambda-action#58
hashicorp/packer#6569

- Add a new cli flag `max-attempts` with default value 200
- Update `run` function to read `max-attempts` from the cli context
- Replace `svc.WaitUntilFunctionUpdated` with `svc.WaitUntilFunctionUpdatedWithContext`
- Use `request.WithWaiterMaxAttempts` to set max attempts in `Exec` function

Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
@appleboy appleboy added the enhancement New feature or request label Apr 2, 2023
@appleboy appleboy merged commit 37b1858 into master Apr 2, 2023
@appleboy appleboy deleted the retry branch April 2, 2023 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant