This is an automated email from the ASF dual-hosted git repository. kaxilnaik pushed a commit to branch v3-0-test in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 16cc912a2298641e497ed4767be1a0f2321499a0 Author: Amogh Desai <[email protected]> AuthorDate: Thu Apr 17 19:14:00 2025 +0530 Fix the taskflow context example in docs (#49399) (cherry picked from commit 1c59cedd8aecd443ee9a4bd10e219d96f6679623) --- devel-common/src/docs/shared/template-examples/taskflow.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devel-common/src/docs/shared/template-examples/taskflow.rst b/devel-common/src/docs/shared/template-examples/taskflow.rst index 5ea69554518..ee5251ba256 100644 --- a/devel-common/src/docs/shared/template-examples/taskflow.rst +++ b/devel-common/src/docs/shared/template-examples/taskflow.rst @@ -22,7 +22,7 @@ @task - def print_ti_info(task_instance: TaskInstance | None = None, dag_run: DagRun | None = None): + def print_ti_info(task_instance: TaskInstance, dag_run: DagRun): print(f"Run ID: {task_instance.run_id}") # Run ID: scheduled__2023-08-09T00:00:00+00:00 print(f"Duration: {task_instance.duration}") # Duration: 0.972019 print(f"DAG Run queued at: {dag_run.queued_at}") # 2023-08-10 00:00:01+02:20
