-
Notifications
You must be signed in to change notification settings - Fork 16.4k
AIP-44 Migrate Dagbag.sync_to_db to internal API. #29188
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
AIP-44 Migrate Dagbag.sync_to_db to internal API. #29188
Conversation
|
Hi Team @potiuk @mhenc @vincbeck this task appears to be more complex than i expected. i went through the AIP 44, , and the PRs for the other tasks to get a better understanding. in AIP-44, i found a reference to the
based on my understanding so far, i have done a rough refactoring to see if i am in the right direction. it will be really helpful if anyone could take a look at the changes. From the AIP, i got the impression that we would be sending the serialized dag to the internal api. Will |
|
i tried the below code to check the serialization/deserialization: but i got this error: |
8ec3f0d to
94a1999
Compare
Yes, the InternalApi decorator/server serializes/deserializes the objects using BaseSerialization. https://github.com/apache/airflow/blob/main/airflow/api_internal/internal_api_call.py#L107 I see that you have problems serializing |
|
Regarding But for some reason the serialized object doesn't contain https://github.com/apache/airflow/blob/main/airflow/serialization/serialized_objects.py#L415 at least it worked for me. But I am not sure if it won't break something. @potiuk @ashb do you have any idea why it is like that? is this code used anywhere? |
8ef6e37 to
2804486
Compare
8d64734 to
126eac3
Compare
126eac3 to
cb467e6
Compare
cb467e6 to
66fa891
Compare
|
Sorry, i have not looked at this before, I want to have a closer look at that after we discuss the approach i proposed in #29513 (comment). - I have a feeling that once we agree this is a good idea and we apply it here, we might implement some simple refactor that will let us avoid any complexity (but it's too late for me now to think clearly). |
66fa891 to
1ae8161
Compare
1ae8161 to
4871031
Compare
700c17f to
ef555ca
Compare
ef555ca to
f48fdf4
Compare
potiuk
left a comment
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.
LGTM
Fixes: #28615
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named
{pr_number}.significant.rstor{issue_number}.significant.rst, in newsfragments.