Skip to content

fix:fix boto3 client copy #671

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

Merged
merged 1 commit into from
Sep 14, 2024

Conversation

goasleep
Copy link
Contributor

link #669
I got it. I follow the boto3 document and find this is diffcult to copy without getting resource. So I try to return same obj.
The resaon is the copy config will pass in the sub graph and the use same client.This means that copying and returning the original object have the same effect.

BTW, I refactor it shallow copy code and pass all test

Copy link
Collaborator

@VinciGit00 VinciGit00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it implemented in graphs that uses bedrock? I think some lines in abstract graph should be changed, otherwise this copy for bedrock will never be invoked

@goasleep
Copy link
Contributor Author

is it implemented in graphs that uses bedrock? I think some lines in abstract graph should be changed, otherwise this copy for bedrock will never be invoked

From the issue error, copy config happens before initializing AbstractGraph graphs. It only expand the safe_deepcopy feature for copy boto client

image

Copy link
Collaborator

@VinciGit00 VinciGit00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok now I understood, thank you

@VinciGit00 VinciGit00 merged commit 3327312 into ScrapeGraphAI:main Sep 14, 2024
2 checks passed
Copy link

🎉 This PR is included in version 1.20.0-beta.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Copy link

🎉 This PR is included in version 1.20.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants