Skip to content

Commit

Permalink
fix logic on stop deploy, wait until ExApp removed
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Borysenko <[email protected]>
  • Loading branch information
andrey18106 committed Apr 29, 2024
1 parent ec05683 commit 26ddc3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Controller/DaemonConfigController.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public function stopTestDeploy(string $name): Response {
if ($exApp !== null) {
$this->service->runOccCommand(sprintf("app_api:app:unregister --silent --force %s", Application::TEST_DEPLOY_APPID));
$elapsedTime = 0;
while ($elapsedTime < 5000000 && $this->exAppService->getExApp(Application::TEST_DEPLOY_APPID) === null) {
while ($elapsedTime < 5000000 && $this->exAppService->getExApp(Application::TEST_DEPLOY_APPID) !== null) {
usleep(150000); // 0.15
$elapsedTime += 150000;
}
Expand Down

0 comments on commit 26ddc3c

Please sign in to comment.