Skip to content

Commit 9d65c93

Browse files
fix for #233
1 parent 465e3d1 commit 9d65c93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/io/apigee/buildTools/enterprise4g/mavenplugin/DeployMojo.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,12 +237,12 @@ public void doActivateBundle() throws IOException, MojoFailureException, Interr
237237
if (Options.async) {
238238
return;
239239
}
240-
240+
Thread.sleep(10*1000); //Introducing this delay to avoid the 503 error while performing GET immediately after the POST deployments
241241
boolean deployed = false;
242242
//Loop to check the deployment status
243243
for (; !deployed; ) {
244244
deployed = restUtil.getDeploymentStateForRevision(super.getProfile(), revision);
245-
Thread.sleep(5*1000);
245+
Thread.sleep(10*1000);
246246
}
247247
} catch (IOException e) {
248248
throw e ;

0 commit comments

Comments
 (0)