-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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 support for Microsoft Azure Blob Storage in Google Cloud Storage Transfer Service operators #8818
Conversation
airflow/providers/google/cloud/hooks/cloud_storage_transfer_service.py
Outdated
Show resolved
Hide resolved
@khyurri Do you need any help? I am available for you if you have any questions. |
@mik-laj |
@khyurri , how do you attempt to build documentation and what errors are you getting? |
Indeed we have a super-easy way to build documentation - simply run './breeze build-documentation' and all should happen automatically. I would love to hear what problems you experience with it. |
@ad-m python setup.py build_sphinx Build completes without any errors with message: I can find separate documentation pages (like in |
@khyurri - here is the official way of building the documentation (described in our CONTRIBUTING document): Additionally (if you do not want to setup your virtualenv) we have BREEZE development environment that downloads and uses Docker image to do the same: https://github.com/apache/airflow/blob/master/BREEZE.rst#using-the-airflow-breeze-environment |
@potiuk @ad-m How examples are displayed in the documentation? |
@khyurri Sorry. I missed your messsage. Example DAG files are not available in the documentation until they are used in the documentation. You can attach a fragment of files using the exampleinclude directive. Documentation for this service can be found here.
I would be happy if you run example DAG and see if it works. You can do it with the help of automatic system tests. I am very sad that you had to wait so long for my answer. I hope that my inattention will discourage you from completing this change. |
I think it's done. |
@khyurri can you rebase please? In the meantime we introduced black formatter for providers package. Sorry for such a long time of waiting for review. CC: @michalslowikowski00 may be interested in this PR |
@khyurri seems like rebase wasn't successful |
Yeah. Working on it. |
@khyurri Do you need help? I will gladly do it for you. |
@mik-laj |
I was busy with Airflow 2.0, but today I will try to look at it. |
I rebased on master, black changed too much code. |
The Workflow run is cancelling this PR. It has some failed jobs matching ^Pylint$,^Static checks,^Build docs$,^Spell check docs$,^Backport packages$,^Provider packages,^Checks: Helm tests$,^Test OpenAPI*. |
# [END howto_operator_gcp_transfer_cancel_operation] | ||
|
||
# [START howto_operator_gcp_transfer_delete_job] | ||
delete_transfer_from_aws_job = CloudDataTransferServiceDeleteJobOperator( |
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.
delete_transfer_from_aws_job = CloudDataTransferServiceDeleteJobOperator( | |
delete_transfer_from_job = CloudDataTransferServiceDeleteJobOperator( |
|
||
# [START howto_operator_gcp_transfer_delete_job] | ||
delete_transfer_from_aws_job = CloudDataTransferServiceDeleteJobOperator( | ||
task_id="delete_transfer_from_aws_job", |
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.
task_id="delete_transfer_from_aws_job", | |
task_id="delete_transfer_from_job", |
create_transfer_job_from_azure >> wait_for_operation_to_start >> pause_operation | ||
pause_operation >> list_operations >> get_operation >> resume_operation | ||
resume_operation >> wait_for_operation_to_end >> cancel_operation | ||
cancel_operation >> delete_transfer_from_aws_job |
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.
cancel_operation >> delete_transfer_from_aws_job | |
cancel_operation >> delete_transfer_from_job |
Code looks good to me. Can you add tests to avoid regression? |
Sure |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions. |
Operators Code, examples and documentation completed. I've got bug on
CloudDataTransferServiceCancelOperationOperator
from example. I'll fix it.Can you, please, review changed code?
Make sure to mark the boxes below before creating PR: [x]
In case of fundamental code change, 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 UPDATING.md.
Read the Pull Request Guidelines for more information.