Skip to content

Commit

Permalink
[dagster-airlift] fix master (#25290)
Browse files Browse the repository at this point in the history
## Summary & Motivation
This file keeps disappearing and I don't know why
## How I Tested These Changes
Existing tests now pass
## Changelog
NOCHANGELOG
  • Loading branch information
dpeng817 authored Oct 15, 2024
1 parent 0df5139 commit 6c0c2d5
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
from datetime import datetime

from airflow import DAG
from airflow.operators.python import PythonOperator


def print_hello() -> None:
print("Hello") # noqa: T201


default_args = {
"owner": "airflow",
"depends_on_past": False,
"start_date": datetime(2023, 1, 1),
"retries": 0,
}


def make_print_dag(dag_id: str) -> DAG:
with DAG(
dag_id,
default_args=default_args,
schedule_interval=None,
is_paused_upon_creation=False,
) as dag:
PythonOperator(task_id="print_task", python_callable=print_hello) >> PythonOperator(
task_id="downstream_print_task", python_callable=print_hello
) # type: ignore
return dag


print_dag = make_print_dag("print_dag")
other_print_dag = make_print_dag("other_print_dag")

0 comments on commit 6c0c2d5

Please sign in to comment.