airflow tasks test <dag_id> <task_id> [execution_date_or_run_id]

Test a task instance


dag_idThe id of the dag
task_idThe id of the task
execution_date_or_run_idThe execution_date of the DAG or run_id of the DAGRun (optional)


-h, --helpShow this help message and exit
-n, --dry-runPerform 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-mortemOpen 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