This is an automated email from the ASF dual-hosted git repository.

dyankiv pushed a commit to branch 2.5.1-tensor-jupyterlab
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git


The following commit(s) were added to refs/heads/2.5.1-tensor-jupyterlab by 
this push:
     new 4173f13  increase timeout for waiting on docker create project result
4173f13 is described below

commit 4173f13d99ef173d9752d925c1b05ee234403536
Author: Denys Yankiv <[email protected]>
AuthorDate: Thu Feb 17 17:31:15 2022 +0200

    increase timeout for waiting on docker create project result
---
 .../epam/datalab/backendapi/service/impl/ProjectServiceImpl.java   | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git 
a/services/provisioning-service/src/main/java/com/epam/datalab/backendapi/service/impl/ProjectServiceImpl.java
 
b/services/provisioning-service/src/main/java/com/epam/datalab/backendapi/service/impl/ProjectServiceImpl.java
index f92e1f4..312f000 100644
--- 
a/services/provisioning-service/src/main/java/com/epam/datalab/backendapi/service/impl/ProjectServiceImpl.java
+++ 
b/services/provisioning-service/src/main/java/com/epam/datalab/backendapi/service/impl/ProjectServiceImpl.java
@@ -35,6 +35,7 @@ import com.epam.datalab.dto.project.ProjectCreateDTO;
 import com.epam.datalab.rest.client.RESTService;
 import com.fasterxml.jackson.core.JsonProcessingException;
 import com.google.inject.Inject;
+import io.dropwizard.util.Duration;
 import lombok.extern.slf4j.Slf4j;
 
 import java.util.Objects;
@@ -96,9 +97,13 @@ public class ProjectServiceImpl implements ProjectService {
     private String executeDocker(UserInfo userInfo, ResourceBaseDTO dto, 
DockerAction action, String projectName,
                                  String resourceType, String image, String 
endpoint) {
         String uuid = DockerCommands.generateUUID();
+        Duration timeout = configuration.getKeyLoaderPollTimeout();
+        if(action == DockerAction.CREATE){
+            timeout = Duration.minutes(timeout.toMinutes() + 10);
+        }
 
         folderListenerExecutor.start(configuration.getKeyLoaderDirectory(),
-                configuration.getKeyLoaderPollTimeout(),
+                timeout,
                 new ProjectCallbackHandler(selfService, userInfo.getName(), 
uuid,
                         action, CALLBACK_URI, projectName, getEdgeClass(), 
endpoint));
 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to