mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 19:00:59 +03:00
Chore/leave default timeout for sandbox execution (#5263)
leave default timeout for sandbox execution
This commit is contained in:
@@ -364,8 +364,7 @@ try {
|
||||
const sandbox = createCodeExecutionSandbox('', [], {}, additionalSandbox)
|
||||
|
||||
let response = await executeJavaScriptCode(code, sandbox, {
|
||||
useSandbox: false,
|
||||
timeout: 10000
|
||||
useSandbox: false
|
||||
})
|
||||
|
||||
if (typeof response === 'object') {
|
||||
|
||||
@@ -372,8 +372,7 @@ try {
|
||||
const sandbox = createCodeExecutionSandbox('', [], {}, additionalSandbox)
|
||||
|
||||
let response = await executeJavaScriptCode(code, sandbox, {
|
||||
useSandbox: false,
|
||||
timeout: 10000
|
||||
useSandbox: false
|
||||
})
|
||||
|
||||
if (typeof response === 'object') {
|
||||
|
||||
@@ -124,9 +124,7 @@ export class DynamicStructuredTool<
|
||||
|
||||
const sandbox = createCodeExecutionSandbox('', this.variables || [], flow, additionalSandbox)
|
||||
|
||||
let response = await executeJavaScriptCode(this.code, sandbox, {
|
||||
timeout: 10000
|
||||
})
|
||||
let response = await executeJavaScriptCode(this.code, sandbox)
|
||||
|
||||
if (typeof response === 'object') {
|
||||
response = JSON.stringify(response)
|
||||
|
||||
@@ -253,9 +253,7 @@ export class DynamicStructuredTool<
|
||||
|
||||
const sandbox = createCodeExecutionSandbox('', this.variables || [], flow, additionalSandbox)
|
||||
|
||||
let response = await executeJavaScriptCode(this.customCode || defaultCode, sandbox, {
|
||||
timeout: 10000
|
||||
})
|
||||
let response = await executeJavaScriptCode(this.customCode || defaultCode, sandbox)
|
||||
|
||||
if (typeof response === 'object') {
|
||||
response = JSON.stringify(response)
|
||||
|
||||
Reference in New Issue
Block a user