Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Change stress test

Tomas Valenta55f734c19102
diff --git a/.github/workflows/stress.test.yml b/.github/workflows/stress.test.yml
index 7b383a8e4..1cb2437ef 100644
--- a/.github/workflows/stress.test.yml
+++ b/.github/workflows/stress.test.yml
@@ -2,7 +2,7 @@ name: Stress test
on:
schedule:
- - cron: '*/10 * * * *'
+ - cron: '*/50 * * * *'
workflow_call:
concurrency:
diff --git a/tests/index.mts b/tests/index.mts
index aeb487465..de4b9a913 100644
--- a/tests/index.mts
+++ b/tests/index.mts
@@ -29,7 +29,7 @@ async function createBatch<T>(length: number, m: () => Promise<T>): Promise<T[]>
}
const batchSize = 5
-const batchCount = 5
+const batchCount = 10
const sandboxes: Sandbox[] = []
@@ -39,7 +39,7 @@ for (let i = 0; i < batchCount; i++) {
if (s.length > 0) {
const first = s[0]
try {
- await first.keepAlive(1 * 60 * 60 * 1000) // 1 hour
+ await first.keepAlive(2 * 60 * 60 * 1000) // 4 hour
} catch (error) {
console.error('ERROR:', error)
}