We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eae8de6 commit ef3b388Copy full SHA for ef3b388
packages/cli-v3/src/entryPoints/managed-run-controller.ts
@@ -55,6 +55,7 @@ const Env = z.object({
55
TRIGGER_MACHINE_MEMORY: z.string().default("0"),
56
TRIGGER_RUNNER_ID: z.string(),
57
TRIGGER_METADATA_URL: z.string().optional(),
58
+ TRIGGER_PRE_SUSPEND_WAIT_MS: z.coerce.number().default(200),
59
60
// Timeline metrics
61
TRIGGER_POD_SCHEDULED_AT_MS: DateEnv,
@@ -610,8 +611,7 @@ class ManagedRunController {
610
611
return;
612
}
613
- // TODO: Make this configurable and add wait debounce
614
- await sleep(200);
+ await sleep(env.TRIGGER_PRE_SUSPEND_WAIT_MS);
615
616
if (snapshot.friendlyId !== this.snapshotFriendlyId) {
617
this.sendDebugLog({
0 commit comments