This is an automated email from the ASF dual-hosted git repository.
lfrolov pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git
The following commit(s) were added to refs/heads/develop by this push:
new 8a73b69 increase timeout for waiting on docker create project result
new 031da01 Merge pull request #1426 from denysyankiv/DATALAB-2706
8a73b69 is described below
commit 8a73b69b3f3583207e172108f64ff149e5e83426
Author: Denys Yankiv <[email protected]>
AuthorDate: Thu Feb 17 17:45:59 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]