You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datalab.apache.org by dy...@apache.org on 2022/02/17 15:53:07 UTC
[incubator-datalab] branch 2.5.1-tcpc-deployment updated: increase timeout for waiting on docker create project result
This is an automated email from the ASF dual-hosted git repository.
dyankiv pushed a commit to branch 2.5.1-tcpc-deployment
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git
The following commit(s) were added to refs/heads/2.5.1-tcpc-deployment by this push:
new 7a1a4ef increase timeout for waiting on docker create project result
7a1a4ef is described below
commit 7a1a4efd1eed2cf84fc21bb6cac5f796df4fc24d
Author: Denys Yankiv <de...@gmail.com>
AuthorDate: Thu Feb 17 17:52:35 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: commits-unsubscribe@datalab.apache.org
For additional commands, e-mail: commits-help@datalab.apache.org