Commit f072c96
committed
feat(debounce): add maxDelay option to limit total debounce time
Add a per-trigger maxDelay option that limits how long a debounced run
can be delayed. This ensures execution happens within a specified window
even with continuous triggers.
Use case: Summarizing AI conversation threads that need to stay relatively
up to date while still debouncing rapid message triggers.
refs TRI-72341 parent b221719 commit f072c96
File tree
7 files changed
+561
-9
lines changed- .changeset
- internal-packages/run-engine/src/engine
- systems
- tests
- packages/core/src/v3
- isomorphic
- schemas
- types
- references/hello-world/src/trigger
7 files changed
+561
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
Lines changed: 27 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
| |||
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
20 | 29 | | |
21 | 30 | | |
22 | 31 | | |
| |||
521 | 530 | | |
522 | 531 | | |
523 | 532 | | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
524 | 547 | | |
525 | | - | |
| 548 | + | |
526 | 549 | | |
527 | 550 | | |
528 | 551 | | |
| |||
531 | 554 | | |
532 | 555 | | |
533 | 556 | | |
534 | | - | |
| 557 | + | |
| 558 | + | |
535 | 559 | | |
536 | 560 | | |
537 | 561 | | |
| |||
0 commit comments