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 3ee9180 commit 7c16590Copy full SHA for 7c16590
1 file changed
internal-packages/run-engine/src/engine/index.ts
@@ -2284,10 +2284,14 @@ export class RunEngine {
2284
const ttlMs = parseNaturalLanguageDurationInMs(ttl);
2285
const maxTtlMs = parseNaturalLanguageDurationInMs(maxTtl);
2286
2287
- if (ttlMs === undefined || maxTtlMs === undefined) {
+ if (maxTtlMs === undefined) {
2288
return ttl;
2289
}
2290
2291
+ if (ttlMs === undefined) {
2292
+ return maxTtl;
2293
+ }
2294
+
2295
return ttlMs <= maxTtlMs ? ttl : maxTtl;
2296
2297
0 commit comments