You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 8, 2023. It is now read-only.
We would like a pattern that helps to modernize from older Airflow syntax to modern decorator-based syntax by replacing the DAG call with decorators and bitwise >> chaining with chain().
@dag(description="My cool DAG", schedule_interval=None)
def do_my_thing():
@task
def do_thing():
# You might want to instantiate AwsRDSHook and use it here, or use a specific Airflow provider's hook.
return not AwsRDSHook().db_exists(
region=get_variable(EnvVarKeys.TARGET)
)
@task
def do_thing_two():
pass
chain(do_thing, do_thing_two)
Acceptance criteria
Working pattern that can be applied to handle both cases (in a .md file)