Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 1.4k
fix(webapp,run-engine,core): drop the hidden debounce ceiling, fail fast on an unusable maxDelay#4521
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
fix(webapp,run-engine,core): drop the hidden debounce ceiling, fail fast on an unusable maxDelay #4521
Changes from all commits
af9fbe4d7dd33b13da59761d77ea39c8055373898c435f410d18ddf9fba36a111b3be441fb9d4d45c149d5fc9c4File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| --- | ||
| area: webapp | ||
| type: fix | ||
| --- | ||
| Fix debounce doing nothing when the delay was longer than an hour, which made every trigger | ||
| create its own run instead of collapsing onto the debounce key. Debounced runs now keep being | ||
| pushed back for as long as triggers keep arriving, so set `maxDelay` when the work has to happen | ||
| eventually, and settings that could never debounce are rejected rather than silently ignored. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -384,7 +384,7 @@ export class RunEngine { | ||
| redis: options.debounce?.redis ?? options.runLock.redis, | ||
| executionSnapshotSystem: this.executionSnapshotSystem, | ||
| delayedRunSystem: this.delayedRunSystem, | ||
| maxDebounceDurationMs: options.debounce?.maxDebounceDurationMs ?? 60 * 60 * 1000, // Default 1 hour | ||
| maxDebounceDurationMs: options.debounce?.maxDebounceDurationMs, | ||
matt-aitken marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. matt-aitken marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| quantizeNewDelayUntilMs: options.debounce?.quantizeNewDelayUntilMs ?? 1000, | ||
| fastPathSkipEnabled: options.debounce?.fastPathSkipEnabled ?? true, | ||
| useReplicaForFastPathRead: options.debounce?.useReplicaForFastPathRead ?? false, | ||
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.