fix: skip retry when Trigger.dev deployment is already current (#27430)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
101cef72ac
commit
72307b13c7
1 file changed
+6
@@ -92,6 +92,12 @@ export class VercelWebhookController {
|
||||
if (error instanceof Error) {
|
||||
errorMessage = error.message;
|
||||
}
|
||||
|
||||
if (errorMessage.includes("Deployment is already the current deployment")) {
|
||||
this.logger.log(`Deployment ${version} is already the current deployment, skipping retry`);
|
||||
return;
|
||||
}
|
||||
|
||||
this.logger.error(`Promotion attempt ${attempt} failed: ${errorMessage}`);
|
||||
if (attempt === maxRetries) throw error;
|
||||
|
||||
|
||||
Reference in new issue
Block a user