You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/10/31 09:56:39 UTC

[GitHub] [airflow] potiuk commented on a diff in pull request #27403: Add classic examples for Python Operators

potiuk commented on code in PR #27403:
URL: https://github.com/apache/airflow/pull/27403#discussion_r1009228106


##########
airflow/example_dags/example_python_operator.py:
##########
@@ -135,4 +141,16 @@ def callable_external_python():
         external_python_task = callable_external_python()
         # [END howto_operator_external_python]
 
-        run_this >> external_python_task
+        external_classic = ExternalPythonOperator(
+            task_id="external_python_classic",
+            python=os.fspath(sys.executable),

Review Comment:
   It does not make it runnable (primary purpose of this is to be able to run example_dag in airflow started locally with examples. But possibly extracting it to properly named variable migt make more sense.



-- 
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