Created
January 28, 2026 23:04
-
-
Save amywieliczka/3b18caf56d2031c1b847fcf33124fa1c to your computer and use it in GitHub Desktop.
Testing Git Dag Bundle Env Var
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """A sample DAG.""" | |
| # Python imports | |
| from datetime import datetime, timedelta | |
| # Airflow imports. | |
| from airflow import DAG | |
| from airflow.decorators import task | |
| with DAG( | |
| dag_id="git_world_dag", | |
| schedule=timedelta(minutes=1), | |
| dagrun_timeout=timedelta(minutes=5), | |
| start_date=datetime(2024, 1, 1), | |
| catchup=False, | |
| is_paused_upon_creation=True, | |
| ) as dag: | |
| @task(task_id="print_task") | |
| def git_world() -> None: | |
| """print_task prints a Git World message.""" | |
| print("Git World!") | |
| git_world() | |
| if __name__ == "__main__": | |
| dag.cli() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment