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

Add thread lock to boto3 resource #76

Closed
wants to merge 1 commit into from
Closed

Add thread lock to boto3 resource #76

wants to merge 1 commit into from

Conversation

nicholsondarius
Copy link

@nicholsondarius nicholsondarius commented Mar 16, 2022

#66 was merged recently but I have still been getting the errors it set out to resolve.
This documentation on the boto3 resource says that the resource is also not thread safe.
This PR adds a thread lock to the instantiation of the boto3 resource.

@nicholsondarius nicholsondarius marked this pull request as draft March 16, 2022 12:32
@nicholsondarius nicholsondarius changed the title Add boto3 resource lock Add thread lock to boto3 resource Mar 16, 2022
@nicholsondarius nicholsondarius marked this pull request as ready for review March 16, 2022 12:56
@nicholsondarius nicholsondarius marked this pull request as draft March 16, 2022 13:01
@nicholsondarius
Copy link
Author

nicholsondarius commented Mar 21, 2022

Leaving this PR in draft until #74 is merged or closed as it mentions not needing to thread lock.

@nicholsondarius
Copy link
Author

I was still getting errors because my GitHub Actions self-hosted runner wasn't updating to the latest version of the adapter. After force reinstalling the adapter, things have been running fine.

@nicholsondarius nicholsondarius deleted the dn/add-resource-lock branch July 21, 2022 13:30
Avinash-1394 pushed a commit to Avinash-1394/dbt-athena that referenced this pull request Jan 12, 2023
* append '/' to not delete tables that share same suffix in s3 location

* fix test and compose loggin message from objects actually used for deletion (since logging message is used in test)
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.

1 participant