Skip to content

impl retry in client side #34

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

Merged
merged 2 commits into from
Jan 22, 2024
Merged

impl retry in client side #34

merged 2 commits into from
Jan 22, 2024

Conversation

namachan10777
Copy link
Contributor

Almost errors caused by inconsistency in JWT timestamp.
Appears to be happening because the time between token acquisition and request is too short.
Inserting delay is a practical solution. But retrying is simpler than it and retrying requires additional cost if only if first request is failed.

@namachan10777 namachan10777 self-assigned this Jan 17, 2024
@namachan10777 namachan10777 requested a review from sksat as a code owner January 17, 2024 07:49
core.exportVariable("GH_FEDERATION_ACCESS_TOKEN", accessToken);
break;
} catch (e) {
continue;
Copy link
Member

Choose a reason for hiding this comment

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

It will be better to add log like retrying...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

LGTM

@sksat sksat added this to the v3.2.0 milestone Jan 17, 2024
@sksat sksat merged commit 18ea27f into main Jan 22, 2024
@sksat sksat deleted the feature/retry branch January 22, 2024 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants