We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16d74f0 commit 856d48fCopy full SHA for 856d48f
worker/env.d.ts
@@ -39,4 +39,5 @@ interface Env {
39
SCALE_DOWN_IDLE_TIME?: string;
40
TRANSLATION_MIXING_MODE?: string;
41
USE_DISPATCHER?: string;
42
+ SLEEP_AFTER?: string;
43
}
worker/index.ts
@@ -42,7 +42,7 @@ export class TranscriberContainer extends Container {
// Longer = Fewer cold starts, but uses more resources when idle
// For pool-based routing: Keep this longer (containers serve many sessions)
44
// For session-based routing: Keep this shorter (containers are session-specific)
45
- sleepAfter = '10m';
+ sleepAfter = this.env.SLEEP_AFTER || '1m';
46
47
// Pass environment variables to the container
48
envVars = {
0 commit comments