Skip to content

Commit

Permalink
workaround to make sure the resources are released at the server side (
Browse files Browse the repository at this point in the history
  • Loading branch information
jdneo authored Jun 24, 2018
1 parent 8783457 commit 7daa6b3
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;

import java.util.concurrent.TimeUnit;

/**
* Deploy an Azure Web App, either Windows-based or Linux-based.
*/
Expand Down Expand Up @@ -91,6 +93,11 @@ public void beforeDeployArtifacts() throws Exception {
info(STOP_APP);

getWebApp().stop();

// workaround for the resources release problem.
// More details: https://github.com/Microsoft/azure-maven-plugins/issues/191
TimeUnit.SECONDS.sleep(10 /* 10 seconds */);

isAppStopped = true;

info(STOP_APP_DONE);
Expand Down

0 comments on commit 7daa6b3

Please sign in to comment.