github-script
github-script copied to clipboard
Add the ability to have a delay before retrying
It looks like there plugin-retry of octokit is using const retryAfter = Math.pow((options.request.retryCount || 0) + 1, 2); as value for retry.
Managed to override the retryAfterBaseValue to have a different delay
It looks like there plugin-retry of octokit is using const retryAfter = Math.pow((options.request.retryCount || 0) + 1, 2); as value for retry.
Could you explain your use case? When would you want a fixed retry delay instead of exponential delay?
It looks like there plugin-retry of octokit is using const retryAfter = Math.pow((options.request.retryCount || 0) + 1, 2); as value for retry.
Could you explain your use case? When would you want a fixed retry delay instead of exponential delay?
exponential is fine but I would like to have a starting point bigger than the default (1000) for example I want to retry a call after 1min / 2min / 4min especially if you know that a cluster can take time to go up.
This feature would be useful. Is it planned to be merged?