File tree Expand file tree Collapse file tree
executor/handlers/function Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import { validateProxyUrl } from '@/lib/security/input-validation'
88import { generateRequestId } from '@/lib/utils'
99export const dynamic = 'force-dynamic'
1010export const runtime = 'nodejs'
11- export const maxDuration = 60
11+ export const maxDuration = 300
1212
1313const logger = createLogger ( 'FunctionExecuteAPI' )
1414
@@ -652,7 +652,7 @@ export async function POST(req: NextRequest) {
652652 const {
653653 code,
654654 params = { } ,
655- timeout = 5000 ,
655+ timeout = 180000 ,
656656 language = DEFAULT_CODE_LANGUAGE ,
657657 useLocalVM = false ,
658658 envVars = { } ,
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ export class FunctionBlockHandler implements BlockHandler {
6161 code : codeContent ,
6262 language : inputs . language || DEFAULT_CODE_LANGUAGE ,
6363 useLocalVM : ! inputs . remoteExecution ,
64- timeout : inputs . timeout || 5000 ,
64+ timeout : inputs . timeout || 180000 ,
6565 envVars : context . environmentVariables || { } ,
6666 workflowVariables : context . workflowVariables || { } ,
6767 blockData : blockData , // Pass block data for variable resolution
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { DEFAULT_CODE_LANGUAGE } from '@/lib/execution/languages'
22import type { CodeExecutionInput , CodeExecutionOutput } from '@/tools/function/types'
33import type { ToolConfig } from '@/tools/types'
44
5- const DEFAULT_TIMEOUT = 10000 // 10 seconds
5+ const DEFAULT_TIMEOUT = 180000 // 3 minutes
66
77export const functionExecuteTool : ToolConfig < CodeExecutionInput , CodeExecutionOutput > = {
88 id : 'function_execute' ,
You can’t perform that action at this time.
0 commit comments