You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Jasperora (via GitHub)" <gi...@apache.org> on 2025/07/24 06:44:22 UTC
[PR] Documentation for Human-in-the-loop operator [airflow]
Jasperora opened a new pull request, #53694:
URL: https://github.com/apache/airflow/pull/53694
## Why
Related issue: #52206.
## What
Add documentation for Human-in-the-loop operator.
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<!--
Thank you for contributing! Please make sure that your code changes
are covered with tests. And in case of new features or big changes
remember to adjust the documentation.
Feel free to ping committers for the review!
In case of an existing issue, reference it using one of the following:
closes: #ISSUE
related: #ISSUE
How to write a good git commit message:
http://chris.beams.io/posts/git-commit/
-->
<!-- Please keep an empty line above the dashes. -->
---
**^ Add meaningful description above**
Read the **[Pull Request Guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#pull-request-guidelines)** for more information.
In case of fundamental code changes, an Airflow Improvement Proposal ([AIP](https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+Improvement+Proposals)) is needed.
In case of a new dependency, check compliance with the [ASF 3rd Party License Policy](https://www.apache.org/legal/resolved.html#category-x).
In case of backwards incompatible changes please leave a note in a newsfragment file, named `{pr_number}.significant.rst` or `{issue_number}.significant.rst`, in [airflow-core/newsfragments](https://github.com/apache/airflow/tree/main/airflow-core/newsfragments).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Documentation for Human-in-the-loop operator [airflow]
Posted by "Lee-W (via GitHub)" <gi...@apache.org>.
Lee-W merged PR #53694:
URL: https://github.com/apache/airflow/pull/53694
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Documentation for Human-in-the-loop operator [airflow]
Posted by "jscheffl (via GitHub)" <gi...@apache.org>.
jscheffl commented on code in PR #53694:
URL: https://github.com/apache/airflow/pull/53694#discussion_r2237669340
##########
airflow-core/docs/tutorial/hitl.rst:
##########
@@ -0,0 +1,100 @@
+ .. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ .. http://www.apache.org/licenses/LICENSE-2.0
+
+ .. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+HITLOperator (Human-in-the-loop)
+================================
+
+Human-in-the-Loop (HITL) functionality allows you to incorporate human decision-making directly into your workflows.
Review Comment:
Can you add a version marker?
```suggestion
.. versionadded:: 3.1
Human-in-the-Loop (HITL) functionality allows you to incorporate human decision-making directly into your workflows.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Documentation for Human-in-the-loop operator [airflow]
Posted by "uranusjr (via GitHub)" <gi...@apache.org>.
uranusjr commented on code in PR #53694:
URL: https://github.com/apache/airflow/pull/53694#discussion_r2238105598
##########
airflow-core/docs/tutorial/hitl.rst:
##########
@@ -0,0 +1,100 @@
+ .. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ .. http://www.apache.org/licenses/LICENSE-2.0
+
+ .. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+HITLOperator (Human-in-the-loop)
+================================
+
+Human-in-the-Loop (HITL) functionality allows you to incorporate human decision-making directly into your workflows.
Review Comment:
(The marker probably should not be indented)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Documentation for Human-in-the-loop operator [airflow]
Posted by "uranusjr (via GitHub)" <gi...@apache.org>.
uranusjr commented on code in PR #53694:
URL: https://github.com/apache/airflow/pull/53694#discussion_r2238107318
##########
airflow-core/docs/tutorial/hitl.rst:
##########
@@ -0,0 +1,100 @@
+ .. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ .. http://www.apache.org/licenses/LICENSE-2.0
+
+ .. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+HITLOperator (Human-in-the-loop)
+================================
+
+Human-in-the-Loop (HITL) functionality allows you to incorporate human decision-making directly into your workflows.
+This powerful feature enables workflows to pause and wait for human input, making it perfect for approval processes, manual quality checks, and scenarios where human judgment is essential.
+
+In this tutorial, we will explore how to use the HITL operators in workflows.
+
+A HITL Example DAG
+------------------
+
+Here is what HITL looks like in a DAG. We'll break it down and dive into it.
+
+.. exampleinclude:: /../../providers/standard/src/airflow/providers/standard/example_dags/example_hitl_operator.py
+ :language: python
+ :start-after: [START hitl_tutorial]
+ :end-before: [END hitl_tutorial]
+
+
+Input Provision
+---------------
+
+Users can provide input using params that is used for subsequent tasks.
+This is useful for workflows involving human guidance within large language model (LLM) workflows.
+
+.. exampleinclude:: /../../providers/standard/src/airflow/providers/standard/example_dags/example_hitl_operator.py
+ :language: python
+ :dedent: 4
+ :start-after: [START howto_hitl_entry_operator]
+ :end-before: [END howto_hitl_entry_operator]
+
+
+Option Selection
+----------------
+
+Input can be provided in the form of options.
+Users can select one of the available options, which can be used to direct the workflow.
+
+.. exampleinclude:: /../../providers/standard/src/airflow/providers/standard/example_dags/example_hitl_operator.py
+ :language: python
+ :dedent: 4
+ :start-after: [START howto_hitl_operator]
+ :end-before: [END howto_hitl_operator]
+
+Approval or Rejection
+---------------------
+
+A specialized form of option selection, which has only 'Approval' and 'Rejection' as options.
+
+.. exampleinclude:: /../../providers/standard/src/airflow/providers/standard/example_dags/example_hitl_operator.py
+ :language: python
+ :dedent: 4
+ :start-after: [START howto_hitl_approval_operator]
+ :end-before: [END howto_hitl_approval_operator]
+
+As you can see in the body of this code snippet, you can use ``Xcoms`` to get information provided by the user.
Review Comment:
Remove the double ticks.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Documentation for Human-in-the-loop operator [airflow]
Posted by "Lee-W (via GitHub)" <gi...@apache.org>.
Lee-W commented on code in PR #53694:
URL: https://github.com/apache/airflow/pull/53694#discussion_r2235804950
##########
airflow-core/docs/tutorial/hitl.rst:
##########
@@ -0,0 +1,100 @@
+ .. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ .. http://www.apache.org/licenses/LICENSE-2.0
+
+ .. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+HITLOperator (Human-in-the-loop)
+================================
+
+Human-in-the-Loop (HITL) functionality allows you to incorporate human decision-making directly into your workflows.
+This powerful feature enables workflows to pause and wait for human input, making it perfect for approval processes, manual quality checks, and scenarios where human judgment is essential.
+
+In this tutorial, we will explore how to use the HITL operators in workflows.
+
+A HITL Example DAG
+------------------
+
+Here is what HITL looks like in a DAG. We'll break it down and dive into it.
+
+.. exampleinclude:: /../../providers/standard/src/airflow/providers/standard/example_dags/example_hitl_operator.py
+ :language: python
+ :start-after: [START hitl_tutorial]
+ :end-before: [END hitl_tutorial]
+
+
+Input Provision
+---------------
+
+Users can provide input using params that is used for subsequent tasks.
+This is useful for workflows involving human guidance within large language model (LLM) workflows.
+
+.. exampleinclude:: /../../providers/standard/src/airflow/providers/standard/example_dags/example_hitl_operator.py
+ :language: python
+ :dedent: 4
+ :start-after: [START howto_hitl_entry_operator]
+ :end-before: [END howto_hitl_entry_operator]
+
+
+Option Selection
+----------------
+
+Input can be provided in the form of options.
+Users can select one of the available options, which can be used to direct the workflow.
+
+.. exampleinclude:: /../../providers/standard/src/airflow/providers/standard/example_dags/example_hitl_operator.py
+ :language: python
+ :dedent: 4
+ :start-after: [START howto_hitl_operator]
+ :end-before: [END howto_hitl_operator]
+
+Approval or Rejection
+---------------------
+
+A specialized form of option selection, which has only 'Approval' and 'Rejection' as options.
+
+.. exampleinclude:: /../../providers/standard/src/airflow/providers/standard/example_dags/example_hitl_operator.py
+ :language: python
+ :dedent: 4
+ :start-after: [START howto_hitl_approval_operator]
+ :end-before: [END howto_hitl_approval_operator]
+
+As you can see in the body of this code snippet, you can use ``Xcoms`` to get information provided by the user.
+
+Branch Selection
+----------------
+
+Users can choose which branch to follow within the DAG.
Review Comment:
```suggestion
Users can choose which branches to follow within the Dag.
```
I think multiple branches are possible in the current design.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Documentation for Human-in-the-loop operator [airflow]
Posted by "Lee-W (via GitHub)" <gi...@apache.org>.
Lee-W commented on PR #53694:
URL: https://github.com/apache/airflow/pull/53694#issuecomment-3135860530
As all the comment has been addressed, I'll merge it now
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Documentation for Human-in-the-loop operator [airflow]
Posted by "uranusjr (via GitHub)" <gi...@apache.org>.
uranusjr commented on code in PR #53694:
URL: https://github.com/apache/airflow/pull/53694#discussion_r2238106577
##########
airflow-core/docs/tutorial/hitl.rst:
##########
@@ -0,0 +1,100 @@
+ .. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ .. http://www.apache.org/licenses/LICENSE-2.0
+
+ .. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+HITLOperator (Human-in-the-loop)
+================================
+
+Human-in-the-Loop (HITL) functionality allows you to incorporate human decision-making directly into your workflows.
+This powerful feature enables workflows to pause and wait for human input, making it perfect for approval processes, manual quality checks, and scenarios where human judgment is essential.
+
+In this tutorial, we will explore how to use the HITL operators in workflows.
+
+A HITL Example DAG
Review Comment:
_An_ HITL.
##########
airflow-core/docs/tutorial/hitl.rst:
##########
@@ -0,0 +1,100 @@
+ .. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ .. http://www.apache.org/licenses/LICENSE-2.0
+
+ .. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+HITLOperator (Human-in-the-loop)
+================================
+
+Human-in-the-Loop (HITL) functionality allows you to incorporate human decision-making directly into your workflows.
+This powerful feature enables workflows to pause and wait for human input, making it perfect for approval processes, manual quality checks, and scenarios where human judgment is essential.
+
+In this tutorial, we will explore how to use the HITL operators in workflows.
+
+A HITL Example DAG
Review Comment:
_An_ HITL.
##########
airflow-core/docs/tutorial/hitl.rst:
##########
@@ -0,0 +1,100 @@
+ .. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ .. http://www.apache.org/licenses/LICENSE-2.0
+
+ .. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+HITLOperator (Human-in-the-loop)
+================================
+
+Human-in-the-Loop (HITL) functionality allows you to incorporate human decision-making directly into your workflows.
+This powerful feature enables workflows to pause and wait for human input, making it perfect for approval processes, manual quality checks, and scenarios where human judgment is essential.
+
+In this tutorial, we will explore how to use the HITL operators in workflows.
+
+A HITL Example DAG
Review Comment:
_An_ HITL example dag
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Documentation for Human-in-the-loop operator [airflow]
Posted by "Lee-W (via GitHub)" <gi...@apache.org>.
Lee-W commented on code in PR #53694:
URL: https://github.com/apache/airflow/pull/53694#discussion_r2235794242
##########
airflow-core/docs/tutorial/hitl.rst:
##########
@@ -0,0 +1,100 @@
+ .. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ .. http://www.apache.org/licenses/LICENSE-2.0
+
+ .. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+HITLOperator (Human-in-the-loop)
+================================
+
+Human-in-the-Loop (HITL) functionality allows you to incorporate human decision-making directly into your workflows.
+This powerful feature enables workflows to pause and wait for human input, making it perfect for approval processes, manual quality checks, and scenarios where human judgment is essential.
+
+In this tutorial, we will explore how to use the HITL operators in workflows.
+
+A HITL Example DAG
Review Comment:
```suggestion
A HITL Example Dag
```
##########
airflow-core/docs/tutorial/hitl.rst:
##########
@@ -0,0 +1,100 @@
+ .. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ .. http://www.apache.org/licenses/LICENSE-2.0
+
+ .. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+HITLOperator (Human-in-the-loop)
+================================
+
+Human-in-the-Loop (HITL) functionality allows you to incorporate human decision-making directly into your workflows.
+This powerful feature enables workflows to pause and wait for human input, making it perfect for approval processes, manual quality checks, and scenarios where human judgment is essential.
+
+In this tutorial, we will explore how to use the HITL operators in workflows.
+
+A HITL Example DAG
+------------------
+
+Here is what HITL looks like in a DAG. We'll break it down and dive into it.
+
+.. exampleinclude:: /../../providers/standard/src/airflow/providers/standard/example_dags/example_hitl_operator.py
+ :language: python
+ :start-after: [START hitl_tutorial]
+ :end-before: [END hitl_tutorial]
+
+
+Input Provision
+---------------
+
+Users can provide input using params that is used for subsequent tasks.
+This is useful for workflows involving human guidance within large language model (LLM) workflows.
+
+.. exampleinclude:: /../../providers/standard/src/airflow/providers/standard/example_dags/example_hitl_operator.py
+ :language: python
+ :dedent: 4
+ :start-after: [START howto_hitl_entry_operator]
+ :end-before: [END howto_hitl_entry_operator]
+
+
+Option Selection
+----------------
+
+Input can be provided in the form of options.
+Users can select one of the available options, which can be used to direct the workflow.
+
+.. exampleinclude:: /../../providers/standard/src/airflow/providers/standard/example_dags/example_hitl_operator.py
+ :language: python
+ :dedent: 4
+ :start-after: [START howto_hitl_operator]
+ :end-before: [END howto_hitl_operator]
+
+Approval or Rejection
+---------------------
+
+A specialized form of option selection, which has only 'Approval' and 'Rejection' as options.
+
+.. exampleinclude:: /../../providers/standard/src/airflow/providers/standard/example_dags/example_hitl_operator.py
+ :language: python
+ :dedent: 4
+ :start-after: [START howto_hitl_approval_operator]
+ :end-before: [END howto_hitl_approval_operator]
+
+As you can see in the body of this code snippet, you can use ``Xcoms`` to get information provided by the user.
Review Comment:
```suggestion
As you can see in the body of this code snippet, you can use ``XComs`` to get information provided by the user.
```
##########
airflow-core/docs/tutorial/hitl.rst:
##########
@@ -0,0 +1,100 @@
+ .. Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ .. http://www.apache.org/licenses/LICENSE-2.0
+
+ .. Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+HITLOperator (Human-in-the-loop)
+================================
+
+Human-in-the-Loop (HITL) functionality allows you to incorporate human decision-making directly into your workflows.
+This powerful feature enables workflows to pause and wait for human input, making it perfect for approval processes, manual quality checks, and scenarios where human judgment is essential.
+
+In this tutorial, we will explore how to use the HITL operators in workflows.
+
+A HITL Example DAG
+------------------
+
+Here is what HITL looks like in a DAG. We'll break it down and dive into it.
+
+.. exampleinclude:: /../../providers/standard/src/airflow/providers/standard/example_dags/example_hitl_operator.py
+ :language: python
+ :start-after: [START hitl_tutorial]
+ :end-before: [END hitl_tutorial]
+
+
+Input Provision
+---------------
+
+Users can provide input using params that is used for subsequent tasks.
+This is useful for workflows involving human guidance within large language model (LLM) workflows.
+
+.. exampleinclude:: /../../providers/standard/src/airflow/providers/standard/example_dags/example_hitl_operator.py
+ :language: python
+ :dedent: 4
+ :start-after: [START howto_hitl_entry_operator]
+ :end-before: [END howto_hitl_entry_operator]
+
+
+Option Selection
+----------------
+
+Input can be provided in the form of options.
+Users can select one of the available options, which can be used to direct the workflow.
+
+.. exampleinclude:: /../../providers/standard/src/airflow/providers/standard/example_dags/example_hitl_operator.py
+ :language: python
+ :dedent: 4
+ :start-after: [START howto_hitl_operator]
+ :end-before: [END howto_hitl_operator]
+
+Approval or Rejection
+---------------------
+
+A specialized form of option selection, which has only 'Approval' and 'Rejection' as options.
+
+.. exampleinclude:: /../../providers/standard/src/airflow/providers/standard/example_dags/example_hitl_operator.py
+ :language: python
+ :dedent: 4
+ :start-after: [START howto_hitl_approval_operator]
+ :end-before: [END howto_hitl_approval_operator]
+
+As you can see in the body of this code snippet, you can use ``Xcoms`` to get information provided by the user.
+
+Branch Selection
+----------------
+
+Users can choose which branch to follow within the DAG.
Review Comment:
```suggestion
Users can choose which branches to follow within the Dag.
```
I think multiple branches is possible in the current design
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org