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

feat: update error when failed deployment retry fails #877

Merged
merged 3 commits into from
Jan 26, 2022

Conversation

guidota
Copy link
Contributor

@guidota guidota commented Jan 24, 2022

Description

Update failed deployment error description when retry task fails to fix it.

Fixing a failed deployment will be ignored when there are newer entities with same pointer and it will be removed from the cache.

Copy link
Contributor

@agusaldasoro agusaldasoro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR looks great, anyway consider changing the FailedDeploymentsCache to be indexed by pointer, so we don't store more than one failed deployment per pointer and we only store the latest one.

@@ -44,6 +51,10 @@ export async function retryFailedDeploymentExecution(
DeploymentContext.FIX_ATTEMPT
)
} catch (error) {
// it failed again, override failed deployment error description
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure that if the deployment fails throws an exception? Can it fail without throwing an error?

@guidota guidota merged commit 616170f into main Jan 26, 2022
@guidota guidota deleted the feat/failed-deployments-retry-reason branch January 26, 2022 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants