Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom retry blocks to add user declared steps before retrying #3918

Open
jsebastian-acosta opened this issue Feb 21, 2025 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@jsebastian-acosta
Copy link

Describe the enhancement

At this moment the retry blocks only works specifying a pattern to make terragrunt retry when the error is matched, It would be useful to include custom steps just before retrying to give the users a way to fix the errors at runtime

Additional context

The problem that I have faced is that usually got some errors related to corrupted tfstate file "Failed to load state: invalid syntax: unexpected end of JSON input" and the retry logic doesn't seem to work to fix the problem, seems like before retrying it's needed to clean some cache stuff to fix it.

@jsebastian-acosta jsebastian-acosta added the enhancement New feature or request label Feb 21, 2025
@yhakbar
Copy link
Collaborator

yhakbar commented Feb 21, 2025

@jsebastian-acosta have you tried using an error_hook?

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

No branches or pull requests

2 participants