fix: Adding SHUFFLE_APP_SDK_TIMEOUT
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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" {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user