-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[feat] - add cancellation to s3 source #3574
base: main
Are you sure you want to change the base?
Conversation
31d7a21
to
518e112
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like most of the cancellation happens via contexts, which means the workers we want to cancel should already be context aware.
Can this be done with a standard context.WithCancel
?
Would you mind providing an example? I couldn't get it to work :( I was having a problem getting the error out of pageChunker |
If you can get it to work feel free to close this. I'll be out next week, so feel free to replace this PR :) Just gotta make sure the resumption test in #3570 works. |
I'll be out most of next week too, but for posterity another avenue could be errgroup.WithContext. |
hmm.. I guess we could do something like:
Idk why, but that feels more complicated 😅 (assuming, this is what you meant?) |
Description:
This PR handles cancellation during a s3 scan.
Checklist:
make test-community
)?make lint
this requires golangci-lint)?