This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/master by this push:
new b600dfd Fix doci string in API entry. (#13300)
b600dfd is described below
commit b600dfd745c0f3a01018c4b32217cb82f2ffd386
Author: AquaRegia <[email protected]>
AuthorDate: Thu Dec 24 21:08:56 2020 +0800
Fix doci string in API entry. (#13300)
Co-authored-by: aqua.wang <[email protected]>
---
airflow/api/common/experimental/get_dag_run_state.py | 2 +-
airflow/api/common/experimental/get_task_instance.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/airflow/api/common/experimental/get_dag_run_state.py
b/airflow/api/common/experimental/get_dag_run_state.py
index 7be4541..ca71a9a 100644
--- a/airflow/api/common/experimental/get_dag_run_state.py
+++ b/airflow/api/common/experimental/get_dag_run_state.py
@@ -23,7 +23,7 @@ from airflow.api.common.experimental import
check_and_get_dag, check_and_get_dag
def get_dag_run_state(dag_id: str, execution_date: datetime) -> Dict[str, str]:
- """Return the task object identified by the given dag_id and task_id.
+ """Return the Dag Run state identified by the given dag_id and
execution_date.
:param dag_id: DAG id
:param execution_date: execution date
diff --git a/airflow/api/common/experimental/get_task_instance.py
b/airflow/api/common/experimental/get_task_instance.py
index 07f41cb..f3ca1cf 100644
--- a/airflow/api/common/experimental/get_task_instance.py
+++ b/airflow/api/common/experimental/get_task_instance.py
@@ -24,7 +24,7 @@ from airflow.models import TaskInstance
def get_task_instance(dag_id: str, task_id: str, execution_date: datetime) ->
TaskInstance:
- """Return the task object identified by the given dag_id and task_id."""
+ """Return the task instance identified by the given dag_id, task_id and
execution_date."""
dag = check_and_get_dag(dag_id, task_id)
dagrun = check_and_get_dagrun(dag=dag, execution_date=execution_date)