Skip to content

Commit e30599d

Browse files
committed
2 parents afda283 + 150e98b commit e30599d

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

db-connector.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13731,6 +13731,11 @@ func GetDatastoreKey(ctx context.Context, id string, category string) (*CacheKey
1373113731
}
1373213732

1373313733
cacheKey := fmt.Sprintf("%s_%s", nameKey, id)
13734+
13735+
if debug {
13736+
log.Printf("[DEBUG] Getting datastore key for %s", cacheKey)
13737+
}
13738+
1373413739
if project.CacheDb {
1373513740
cache, err := GetCache(ctx, cacheKey)
1373613741
if err == nil {

shared.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17833,7 +17833,7 @@ func compressExecution(ctx context.Context, workflowExecution WorkflowExecution,
1783317833
} else {
1783417834
// OpenSearch (on-premise) handling
1783517835
// log.Printf("[DEBUG] Result length is %d for execution Id %s, %s", len(tmpJson), workflowExecution.ExecutionId, saveLocationInfo)
17836-
if len(tmpJson) >= 1000000 {
17836+
if len(tmpJson) >= 10000000 {
1783717837
// Clean up results' actions
1783817838

1783917839
log.Printf("[DEBUG][%s](%s) ExecutionVariables size: %d, Result size: %d, executionArgument size: %d, Results size: %d", workflowExecution.ExecutionId, saveLocationInfo, len(workflowExecution.ExecutionVariables), len(workflowExecution.Result), len(workflowExecution.ExecutionArgument), len(workflowExecution.Results))
@@ -17843,7 +17843,7 @@ func compressExecution(ctx context.Context, workflowExecution WorkflowExecution,
1784317843
actionId := "execution_argument"
1784417844

1784517845
// Arbitrary reduction size
17846-
maxSize := 50000
17846+
maxSize := 5000000
1784717847
basepath := os.Getenv("SHUFFLE_FILE_LOCATION")
1784817848
if len(basepath) == 0 {
1784917849
basepath = "files"
@@ -18024,7 +18024,7 @@ func compressExecution(ctx context.Context, workflowExecution WorkflowExecution,
1802418024
log.Printf("[DEBUG] Execution size: %d for %s", len(jsonString), workflowExecution.ExecutionId)
1802518025
}
1802618026

18027-
if len(jsonString) > 1000000 {
18027+
if len(jsonString) > 5000000 {
1802818028
log.Printf("[WARNING][%s] Execution size is still too large (%d) when running %s!", workflowExecution.ExecutionId, len(jsonString), saveLocationInfo)
1802918029

1803018030
for resultIndex, result := range workflowExecution.Results {
@@ -18033,9 +18033,9 @@ func compressExecution(ctx context.Context, workflowExecution WorkflowExecution,
1803318033
// log.Printf("[DEBUG] Result Size (%s - action: %d). Value size: %d", result.Action.Label, len(actionData), len(result.Result))
1803418034
}
1803518035

18036-
if len(actionData) > 10000 {
18036+
if len(actionData) > 1000000 {
1803718037
for paramIndex, param := range result.Action.Parameters {
18038-
if len(param.Value) > 10000 {
18038+
if len(param.Value) > 1000000 {
1803918039
// log.Printf("[WARNING][%s] Parameter %s in action %s is too large (%d). Removing value.", workflowExecution.ExecutionId, param.Name, result.Action.Label, len(param.Value))
1804018040
workflowExecution.Results[resultIndex].Action.Parameters[paramIndex].Value = "Size too large. Removed."
1804118041
}

0 commit comments

Comments
 (0)