Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Change default session TTL

Tomas Valenta2218e82d398c
diff --git a/api-service/playground/src/sessions/session.ts b/api-service/playground/src/sessions/session.ts
index 1298a16c7..65238fc7a 100644
--- a/api-service/playground/src/sessions/session.ts
+++ b/api-service/playground/src/sessions/session.ts
@@ -4,7 +4,7 @@ import NodeCache from 'node-cache'
import { CachedProcess, RunProcessParams } from './process'
export const sessionCache = new NodeCache({
- stdTTL: 600,
+ stdTTL: 3600,
checkperiod: 200,
useClones: false,
deleteOnExpire: true,