-
Notifications
You must be signed in to change notification settings - Fork 635
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
[Bug fix] Fixes boto3 credentials reload issue in hub compute #1562
Conversation
if isinstance(storage, MemoryProvider): | ||
storages = [storage] * len(slices) | ||
else: | ||
storages = [storage.copy() for _ in slices] |
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.
creating proper copies of storage to prevent reuse of boto3 resource across workers
self.client = boto3.client("s3", **args) | ||
self.resource = boto3.resource("s3", **args) | ||
session = boto3.session.Session(profile_name=self.profile_name) | ||
self.client = session.client("s3", **args) |
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.
instantiating from session instead of boto3.client makes this threadsafe
Codecov Report
@@ Coverage Diff @@
## main #1562 +/- ##
==========================================
+ Coverage 92.34% 92.36% +0.01%
==========================================
Files 199 199
Lines 17939 17943 +4
==========================================
+ Hits 16566 16573 +7
+ Misses 1373 1370 -3
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
🚀 🚀 Pull Request
Checklist:
coverage-rate
upChanges