Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation to dag test function #26713

Merged
merged 2 commits into from
Sep 28, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion airflow/models/dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -2446,7 +2446,16 @@ def test(
variable_file_path: str | None = None,
session: Session = NEW_SESSION,
) -> None:
"""Execute one single DagRun for a given DAG and execution date."""
"""
Execute one single DagRun for a given DAG and execution date.

:param execution_date: execution date for the DAG run
:param run_conf: configuration to pass to newly created dagrun
:param conn_file_path: file path to a connection file in either yaml or json
:param variable_file_path: file path to a variable file in either yaml or json
:param session: database connection (optional)
:return:
uranusjr marked this conversation as resolved.
Show resolved Hide resolved
"""

def add_logger_if_needed(ti: TaskInstance):
"""
Expand Down