Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add the ability to have a delay before retrying#355

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
mauriziovitale wants to merge2 commits intoactions:main
base:main
Choose a base branch
Loading
frommauriziovitale:ability-to-retry-with-delay

Conversation

mauriziovitale
Copy link

No description provided.

php-coder reacted with thumbs up emoji
@mauriziovitale
Copy link
Author

It looks like there plugin-retry of octokit is using
const retryAfter = Math.pow((options.request.retryCount || 0) + 1, 2);
as value for retry.

@mauriziovitale
Copy link
Author

Managed to override the retryAfterBaseValue to have a different delay

@joshmgross
Copy link
Member

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?

@mauriziovitale
Copy link
Author

mauriziovitale commentedApr 5, 2023
edited
Loading

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.

RomaniukBohdan reacted with thumbs up emoji

@RomaniukBohdan
Copy link

This feature would be useful. Is it planned to be merged?

Copy link

@JlobsingerJlobsinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I don't approve this

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@JlobsingerJlobsingerJlobsinger requested changes

At least 1 approving review is required to merge this pull request.

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@mauriziovitale@joshmgross@RomaniukBohdan@Jlobsinger

[8]ページ先頭

©2009-2025 Movatter.jp