Replies: 2 comments
-
@Mavtti can you check if aiobotocore supports async calls for Redshift? In our check, we cannot find a way. And since the major part of the task goes on waiting for the query to finish we focused on awaiting there and the other parts which are quite fast, we did not focus much on making them async. We're open to ideas, discussions, solutions and contribution for the community. Feel free to raise a PR if you believe we can optimise parts of the code. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Closing this discussion as it appears stale. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello I wondered why in the
RedshiftDataHook
when running the async methodget_query_status
, the boto3 client is created in async while the api calls made withclient.describe_statement
are sync.Why not make api calls async ?
Why not make client creation and api calls sync and only leave
asyncio.sleep
in async ?astronomer-providers/astronomer/providers/amazon/aws/hooks/redshift_data.py
Lines 151 to 160 in 102b24f
Beta Was this translation helpful? Give feedback.
All reactions