airflow tasks test <dag_id> <task_id> [execution_date_or_run_id]
Test a task instance
Arguments
Name | Description |
---|---|
dag_id | The id of the dag |
task_id | The id of the task |
execution_date_or_run_id | The execution_date of the DAG or run_id of the DAGRun (optional) |
Options
Name | Description |
---|---|
-h, --help | Show this help message and exit |
-n, --dry-run | Perform a dry run for each task. Only renders Template Fields for each task, nothing else |
--env-vars <env_vars> | Set env var in both parsing time and runtime for each of entry supplied in a JSON dict |
--map-index <map_index> | Mapped task index |
-m, --post-mortem | Open debugger on uncaught exception |
-S, --subdir <subdir> | File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg' |
-t, --task-params <task_params> | Sends a JSON params dict to the task |