Skip to content
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

Moving EmptyOperator to standard provider #46231

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

amoghrajesh
Copy link
Contributor

@amoghrajesh amoghrajesh commented Jan 29, 2025

Basic dag tested:

from airflow import DAG
from airflow.providers.standard.operators.empty import EmptyOperator
from datetime import datetime

with DAG(
    dag_id="empty_operator_example",
    schedule=None,
    tags=["empty"],
    start_date=datetime(2024, 1, 1),
    catchup=False,
) as dag:

    start = EmptyOperator(task_id="start")
    end = EmptyOperator(task_id="end")

    start >> end


^ 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 newsfragments.

@eladkal
Copy link
Contributor

eladkal commented Jan 29, 2025

It needs newsfragment as breaking change for Airflow 3

@eladkal eladkal added the airflow3.0:breaking Candidates for Airflow 3.0 that contain breaking changes label Jan 29, 2025
@amoghrajesh
Copy link
Contributor Author

@eladkal aren't the other ones for example: bash operator breaking in that case too? #42252


.. List the migration rules needed for this change (see https://github.com/apache/airflow/issues/41641)

* Migration rules needed
Copy link
Contributor

Choose a reason for hiding this comment

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

To make migration easier for users we should have a migration rule for it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
airflow3.0:breaking Candidates for Airflow 3.0 that contain breaking changes area:lineage area:production-image Production image improvements and fixes kind:documentation provider:common-io provider:common-sql provider:edge Edge Executor / Worker (AIP-69) provider:openlineage AIP-53
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants