fix: Adding SHUFFLE_APP_SDK_TIMEOUT

This commit is contained in:
Aditya
2023-11-03 03:35:36 +05:30
parent 96eeef2b3e
commit 8edd395ff6
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -3519,6 +3519,12 @@ class AppBase:
if self.action["app_name"].lower() == "shuffle tools":
timeout = 55
timeout_env = os.getenv("SHUFFLE_APP_SDK_TIMEOUT", timeout)
try:
timeout = int(timeout_env)
except Exception as e:
self.logger.info(f"[WARNING] Failed parsing timeout to int: {e}")
#timeout = 30
try:
+1
View File
@@ -230,6 +230,7 @@ func deployApp(cli *dockerclient.Client, image string, identifier string, env []
// log.Printf("image: %s", image)
// log.Printf("identifier: %s", identifier)
// log.Printf("execution: %+v", workflowExecution)
env = append(env, fmt.Sprintf("SHUFFLE_APP_SDK_TIMEOUT=%s", os.Getenv("SHUFFLE_APP_SDK_TIMEOUT")))
if os.Getenv("IS_KUBERNETES") == "true" {