Skip to content

Commit

Permalink
Increase default runtime timeout to 30s
Browse files Browse the repository at this point in the history
  • Loading branch information
d-gubert committed Oct 21, 2024
1 parent c51b678 commit b3f0fa5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ const COMMAND_PONG = '_zPONG';
export const JSONRPC_METHOD_NOT_FOUND = -32601;

export function getDefaultRuntimeTimeout() {
const envValue = isFinite(process.env.APPS_ENGINE_RUNTIME_TIMEOUT as any) ? Number(process.env.APPS_ENGINE_RUNTIME_TIMEOUT) : 10000;
const envValue = isFinite(process.env.APPS_ENGINE_RUNTIME_TIMEOUT as any) ? Number(process.env.APPS_ENGINE_RUNTIME_TIMEOUT) : 30000;

if (envValue < 0) {
console.log('Environment variable APPS_ENGINE_RUNTIME_TIMEOUT has a negative value, ignoring...');
return 10000;
return 30000;
}

return envValue;
Expand Down

0 comments on commit b3f0fa5

Please sign in to comment.