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

Use linked cancellation token source during proactive refresh. #4471

Merged
merged 6 commits into from
Jan 4, 2024

Conversation

pmaytak
Copy link
Contributor

@pmaytak pmaytak commented Dec 14, 2023

Fixes #4473

Changes proposed in this request

  • Create a linked cancellation token source for the proactive refresh task.

Testing

  • Manually
  • Unit tests

Performance impact
N/A

Documentation

  • All relevant documentation is updated.

@pmaytak pmaytak marked this pull request as ready for review December 21, 2023 04:45
@pmaytak
Copy link
Contributor Author

pmaytak commented Dec 21, 2023

Alternative solution to passing a cancellation token is not to propagate the cancellation to the proactive refresh since it's kind of a fire-and-forget background operation. The reasoning for passing the cancellation is since the original operation was canceled, perhaps all related operations should be canceled too.

@pmaytak pmaytak enabled auto-merge (squash) January 4, 2024 21:15
@pmaytak pmaytak merged commit 1ce5ac0 into main Jan 4, 2024
6 checks passed
@pmaytak pmaytak deleted the pmaytak/proactive-refresh-cancellation branch January 4, 2024 21:28
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.

[Bug] Background proactive token refresh is not properly canceled
3 participants