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
It would be nice to have an option to limit exponential backoff to some degree or duration.
For instance, we have a process with high likelihood of resolving within 10 seconds but may take up to 30 minutes. If we set retryDelay to 10s and turn on exponentialBackoff, the attempts would roughly happen with these delays:
0 (first attempt)
10 seconds
20 seconds
40 seconds
80 seconds
160 seconds
320 seconds (5 min)
640 seconds (11 min)
1280 seconds (21 min)
At this point, the delay is too large and the user has a degraded experience
If we configured a maxRetryDelay of 80 seconds, the backoff algorithm would be capped to a reasonable duration
The text was updated successfully, but these errors were encountered:
Add a migration from version 24 to 25 adding these columns for old deployments
Add a maxRetryDelay and maxRetryDelayDefault in the PgBoss interface
Change updateQueue, getQueues with max_retry_delay
Change insertJob to set max_retry_backoff_delay from either job, queue or default
Change insertJobs to set max_retry_backoff_delay from either job, queue or default
Change failJobs to limit the delay in the retry job
If backoff is configured, limit to the max_retry_delay
If backoff is not configured, also limit the max_delay⚠️ I'm not sure about this, this seems like something that can be confusing. Perhaps we should rename the parameter to max_retry_backoff_delay and limit its scope
It would be nice to have an option to limit exponential backoff to some degree or duration.
For instance, we have a process with high likelihood of resolving within 10 seconds but may take up to 30 minutes. If we set retryDelay to 10s and turn on exponentialBackoff, the attempts would roughly happen with these delays:
At this point, the delay is too large and the user has a degraded experience
If we configured a maxRetryDelay of
80 seconds
, the backoff algorithm would be capped to a reasonable durationThe text was updated successfully, but these errors were encountered: