Skip to content

Conversation

@hankehly
Copy link
Contributor

@hankehly hankehly commented Aug 20, 2022

Related: #25319

Summary

This PR updates the following documentation about classic operators (PythonOperator, PythonVirtualenvOperator, etc..) to their TaskFlow decorator alternatives.

  • How-to Guides / Using Operators / PythonOperator
  • Upgrading from 1.10 to 2

How to check the updates

  1. Build the docs
breeze build-docs --docs-only --package-filter apache-airflow
  1. Open docs/_build/docs/apache-airflow/latest/index.html in your browser

@hankehly hankehly changed the title pdate code examples from "classic" operators to taskflow Update code examples from "classic" operators to taskflow Aug 20, 2022
@@ -22,8 +22,11 @@
PythonOperator
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We could go a step further and retitle this page "@task"

@hankehly
Copy link
Contributor Author

(waiting for checks to pass before requesting review)

@hankehly hankehly marked this pull request as ready for review August 21, 2022 02:14
@hankehly hankehly requested review from kaxil and potiuk as code owners August 21, 2022 02:14
@hankehly hankehly requested review from uranusjr and removed request for kaxil and potiuk August 21, 2022 06:40
@uranusjr
Copy link
Member

Need to fix static check errors.

@hankehly
Copy link
Contributor Author

@uranusjr
Static checks fixed in fad7585

``PythonVirtualenvOperator`` ``@task.virtualenv``
``BranchPythonOperator`` ``@task.branch``
``DockerOperator`` ``@task.docker``
============================= ============================================
Copy link
Member

Choose a reason for hiding this comment

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

We also have @task.kubernetes now

Copy link
Member

Choose a reason for hiding this comment

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

it was added in #25663

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, let's add that in

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@kaxil Added in dfd4327

@potiuk potiuk merged commit 210443e into apache:main Aug 26, 2022
@jedcunningham jedcunningham added the type:doc-only Changelog: Doc Only label Sep 12, 2022
@ephraimbuddy ephraimbuddy added this to the Airflow 2.4.0 milestone Sep 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants