Skip to content
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

address token expiration + rm debug statements #303

Merged
merged 2 commits into from
Oct 25, 2024

Conversation

adhil0
Copy link
Collaborator

@adhil0 adhil0 commented Oct 25, 2024

Our tasks have been getting longer due to rate limits. As a result, our refresh token is expiring halfway through some of our tasks. This PR gets a new one upon expiration.

Also reduces frequency of task.

In the future, we could create a wrapper around the requests object to automatically refresh the token when it detects a 401 error.

@adhil0 adhil0 requested a review from dcritch October 25, 2024 19:34
@dcritch
Copy link
Contributor

dcritch commented Oct 25, 2024

that was quick. nice work!

@dcritch dcritch merged commit 599e384 into RHsyseng:main Oct 25, 2024
1 of 2 checks passed
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