You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deno has a limit of a backoff schedule of 5 or less intervals. This limit is not documented and the error is uniformative and requires reading the code to actually determine the limit.
Will produce the following error, giving the user no indication of what the problem is:
TypeError: Invalid backoffSchedule
await db.enqueue("test", {
^
at validateBackoffSchedule (ext:deno_kv/01_db.ts:29:11)
at Kv.enqueue (ext:deno_kv/01_db.ts:161:7)
at Router.enqueue (file:///Users/kitsonk/github/herd/mod.ts:285:21)
at test.ts:1:10
Also, the limitation of 5 intervals makes it difficult to implement a standard 32 or 64 second exponential backoff (as it would require 6 or 7 intervals). It maybe worth considering catering to allow a common pattern of backoff.
The text was updated successfully, but these errors were encountered:
kitsonk
added a commit
to kitsonk/deno
that referenced
this issue
Jan 3, 2025
Version: Deno 2.1.4
Deno has a limit of a backoff schedule of 5 or less intervals. This limit is not documented and the error is uniformative and requires reading the code to actually determine the limit.
For example the following code:
Will produce the following error, giving the user no indication of what the problem is:
Also, the limitation of 5 intervals makes it difficult to implement a standard 32 or 64 second exponential backoff (as it would require 6 or 7 intervals). It maybe worth considering catering to allow a common pattern of backoff.
The text was updated successfully, but these errors were encountered: