Skip to content

Conversation

@ashb
Copy link
Member

@ashb ashb commented Sep 24, 2025

As of today, even with Edge Executor and TaskSDK, Dags must be defined in
Python. However if we want tasks to run in other languages we need "something"
we can put in the python dag that is an operator. This is that.

It's implementation is quite simple -- it checks the function is empty
(because if it's not someone might mistakenly think it would run the
function), and then if it ever runs, it raises an exception.

Docs for this will be included in the Go example itself, so it is purposefully not included here.


^ 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.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

… dags

As of today, even with Edge Executor and TaskSDK, Dags must be defined in
Python. However if we want tasks to run in other languages we need "something"
we can put in the python dag that is an operator. This is that.

It's implementation is quite simple -- it checks the function is empty
(because if it's not someone might mistakenly think it would run the
function), and then _if_ it ever runs, it raises an exception.
Copy link
Contributor

@amoghrajesh amoghrajesh left a comment

Choose a reason for hiding this comment

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

Comment regarding test and docs. Rest looks good!

Copy link
Contributor

@amoghrajesh amoghrajesh left a comment

Choose a reason for hiding this comment

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

Meant to approve, not comment above

@ashb ashb merged commit 3c33ae7 into apache:main Sep 24, 2025
109 checks passed
@ashb ashb deleted the aip-72-task-stubs branch September 24, 2025 16:58
shahar1 pushed a commit to shahar1/airflow that referenced this pull request Sep 24, 2025
… dags (apache#56055)

As of today, even with Edge Executor and TaskSDK, Dags must be defined in
Python. However if we want tasks to run in other languages we need "something"
we can put in the python dag that is an operator. This is that.

It's implementation is quite simple -- it checks the function is empty
(because if it's not someone might mistakenly think it would run the
function), and then _if_ it ever runs, it raises an exception.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Sep 30, 2025
… dags (apache#56055)

As of today, even with Edge Executor and TaskSDK, Dags must be defined in
Python. However if we want tasks to run in other languages we need "something"
we can put in the python dag that is an operator. This is that.

It's implementation is quite simple -- it checks the function is empty
(because if it's not someone might mistakenly think it would run the
function), and then _if_ it ever runs, it raises an exception.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 1, 2025
… dags (apache#56055)

As of today, even with Edge Executor and TaskSDK, Dags must be defined in
Python. However if we want tasks to run in other languages we need "something"
we can put in the python dag that is an operator. This is that.

It's implementation is quite simple -- it checks the function is empty
(because if it's not someone might mistakenly think it would run the
function), and then _if_ it ever runs, it raises an exception.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 2, 2025
… dags (apache#56055)

As of today, even with Edge Executor and TaskSDK, Dags must be defined in
Python. However if we want tasks to run in other languages we need "something"
we can put in the python dag that is an operator. This is that.

It's implementation is quite simple -- it checks the function is empty
(because if it's not someone might mistakenly think it would run the
function), and then _if_ it ever runs, it raises an exception.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 3, 2025
… dags (apache#56055)

As of today, even with Edge Executor and TaskSDK, Dags must be defined in
Python. However if we want tasks to run in other languages we need "something"
we can put in the python dag that is an operator. This is that.

It's implementation is quite simple -- it checks the function is empty
(because if it's not someone might mistakenly think it would run the
function), and then _if_ it ever runs, it raises an exception.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 4, 2025
… dags (apache#56055)

As of today, even with Edge Executor and TaskSDK, Dags must be defined in
Python. However if we want tasks to run in other languages we need "something"
we can put in the python dag that is an operator. This is that.

It's implementation is quite simple -- it checks the function is empty
(because if it's not someone might mistakenly think it would run the
function), and then _if_ it ever runs, it raises an exception.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 5, 2025
… dags (apache#56055)

As of today, even with Edge Executor and TaskSDK, Dags must be defined in
Python. However if we want tasks to run in other languages we need "something"
we can put in the python dag that is an operator. This is that.

It's implementation is quite simple -- it checks the function is empty
(because if it's not someone might mistakenly think it would run the
function), and then _if_ it ever runs, it raises an exception.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 5, 2025
… dags (apache#56055)

As of today, even with Edge Executor and TaskSDK, Dags must be defined in
Python. However if we want tasks to run in other languages we need "something"
we can put in the python dag that is an operator. This is that.

It's implementation is quite simple -- it checks the function is empty
(because if it's not someone might mistakenly think it would run the
function), and then _if_ it ever runs, it raises an exception.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 7, 2025
… dags (apache#56055)

As of today, even with Edge Executor and TaskSDK, Dags must be defined in
Python. However if we want tasks to run in other languages we need "something"
we can put in the python dag that is an operator. This is that.

It's implementation is quite simple -- it checks the function is empty
(because if it's not someone might mistakenly think it would run the
function), and then _if_ it ever runs, it raises an exception.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 8, 2025
… dags (apache#56055)

As of today, even with Edge Executor and TaskSDK, Dags must be defined in
Python. However if we want tasks to run in other languages we need "something"
we can put in the python dag that is an operator. This is that.

It's implementation is quite simple -- it checks the function is empty
(because if it's not someone might mistakenly think it would run the
function), and then _if_ it ever runs, it raises an exception.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 9, 2025
… dags (apache#56055)

As of today, even with Edge Executor and TaskSDK, Dags must be defined in
Python. However if we want tasks to run in other languages we need "something"
we can put in the python dag that is an operator. This is that.

It's implementation is quite simple -- it checks the function is empty
(because if it's not someone might mistakenly think it would run the
function), and then _if_ it ever runs, it raises an exception.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 10, 2025
… dags (apache#56055)

As of today, even with Edge Executor and TaskSDK, Dags must be defined in
Python. However if we want tasks to run in other languages we need "something"
we can put in the python dag that is an operator. This is that.

It's implementation is quite simple -- it checks the function is empty
(because if it's not someone might mistakenly think it would run the
function), and then _if_ it ever runs, it raises an exception.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 11, 2025
… dags (apache#56055)

As of today, even with Edge Executor and TaskSDK, Dags must be defined in
Python. However if we want tasks to run in other languages we need "something"
we can put in the python dag that is an operator. This is that.

It's implementation is quite simple -- it checks the function is empty
(because if it's not someone might mistakenly think it would run the
function), and then _if_ it ever runs, it raises an exception.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 12, 2025
… dags (apache#56055)

As of today, even with Edge Executor and TaskSDK, Dags must be defined in
Python. However if we want tasks to run in other languages we need "something"
we can put in the python dag that is an operator. This is that.

It's implementation is quite simple -- it checks the function is empty
(because if it's not someone might mistakenly think it would run the
function), and then _if_ it ever runs, it raises an exception.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 14, 2025
… dags (apache#56055)

As of today, even with Edge Executor and TaskSDK, Dags must be defined in
Python. However if we want tasks to run in other languages we need "something"
we can put in the python dag that is an operator. This is that.

It's implementation is quite simple -- it checks the function is empty
(because if it's not someone might mistakenly think it would run the
function), and then _if_ it ever runs, it raises an exception.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 15, 2025
… dags (apache#56055)

As of today, even with Edge Executor and TaskSDK, Dags must be defined in
Python. However if we want tasks to run in other languages we need "something"
we can put in the python dag that is an operator. This is that.

It's implementation is quite simple -- it checks the function is empty
(because if it's not someone might mistakenly think it would run the
function), and then _if_ it ever runs, it raises an exception.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 17, 2025
… dags (apache#56055)

As of today, even with Edge Executor and TaskSDK, Dags must be defined in
Python. However if we want tasks to run in other languages we need "something"
we can put in the python dag that is an operator. This is that.

It's implementation is quite simple -- it checks the function is empty
(because if it's not someone might mistakenly think it would run the
function), and then _if_ it ever runs, it raises an exception.
abdulrahman305 bot pushed a commit to abdulrahman305/airflow that referenced this pull request Oct 19, 2025
… dags (apache#56055)

As of today, even with Edge Executor and TaskSDK, Dags must be defined in
Python. However if we want tasks to run in other languages we need "something"
we can put in the python dag that is an operator. This is that.

It's implementation is quite simple -- it checks the function is empty
(because if it's not someone might mistakenly think it would run the
function), and then _if_ it ever runs, it raises an exception.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants