参考官网: http://airflow.incubator.apache.org/cli.html
Test a task instance. This will run a task without checking for dependencies or recording its state in the database.
airflow test [-h] [-sd SUBDIR] [-dr] [-tp TASK_PARAMS]
dag_id task_id execution_date
dag_id | The id of the dag |
task_id | The id of the task |
execution_date | The execution date of the DAG |
-sd, --subdir | File location or directory from which to look for the dag Default: /Users/kaxil/airflow/dags |
-dr, --dry_run | Perform a dry run Default: False |
-tp, --task_params | |
Sends a JSON params dict to the task |
-tp '{"key":"value"}'