The GitHub Actions job "Tests" on airflow.git has failed.
Run started by GitHub user ephraimbuddy (triggered by ephraimbuddy).

Head commit for run:
8e75e2349791ee606203d5ba9035146e8a3be3dc / Ephraim Anierobi 
<[email protected]>
Allow re-use of decorated tasks (#22941)

This opens up the possibility of using one decorated task
in different dag files.
Take for example the below task:
- common.py

@task(task_id='hello')
def hello():
    print('Hello')

defined in a file and called in different dag files using different task ids:
- dag_file1.py:
from common import hello

@dag()
def mydag():
    for i in range(3):
        hello.override(task_id=f'myhellotask_{i}')()

- dag_file2.py:
from common import hello

@dag():
def mydag2():
    for i in range(3):
        hello.override(task_id=f'welcome_message_{i}')()

They would all run with different task ids

Report URL: https://github.com/apache/airflow/actions/runs/2176042553

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to