@@ -81,18 +81,31 @@ func appServiceRepositoryHost(
81
81
}
82
82
83
83
func resumeDeployment (err error , progressLog func (msg string )) bool {
84
- if strings .Contains (err .Error (), "empty deployment status id" ) {
84
+ errorMessage := err .Error ()
85
+ if strings .Contains (errorMessage , "empty deployment status id" ) {
85
86
progressLog ("Deployment status id is empty. Failed to enable tracking runtime status." +
86
87
"Resuming deployment without tracking status." )
87
88
return true
88
89
}
89
90
90
- if strings .Contains (err . Error () , "response or its properties are empty" ) {
91
+ if strings .Contains (errorMessage , "response or its properties are empty" ) {
91
92
progressLog ("Response or its properties are empty. Failed to enable tracking runtime status." +
92
93
"Resuming deployment without tracking status." )
93
94
return true
94
95
}
95
96
97
+ if strings .Contains (errorMessage , "failed to start within the allotted time" ) {
98
+ progressLog ("Deployment with tracking status failed to start within the allotted time." +
99
+ "Resuming deployment without tracking status." )
100
+ return true
101
+ }
102
+
103
+ if strings .Contains (errorMessage , "the build process failed" ) && ! strings .Contains (errorMessage , "logs for more info" ) {
104
+ progressLog ("Failed to enable tracking runtime status." +
105
+ "Resuming deployment without tracking status." )
106
+ return true
107
+ }
108
+
96
109
var httpErr * azcore.ResponseError
97
110
if errors .As (err , & httpErr ) && httpErr .StatusCode == 404 {
98
111
progressLog ("Resource not found. Failed to enable tracking runtime status." +
0 commit comments