airflow.example_dags.example_passing_params_via_test_command

Example DAG demonstrating the usage of the params arguments in templated arguments.

Module Contents

Functions

my_py_command(params[, test_mode, task])

Print out the "foo" param passed in via

print_env_vars([test_mode])

Print out the "foo" param passed in via

Attributes

run_this

airflow.example_dags.example_passing_params_via_test_command.my_py_command(params, test_mode=None, task=None)[source]

Print out the “foo” param passed in via airflow tasks test example_passing_params_via_test_command run_this <date> -t ‘{“foo”:”bar”}’

airflow.example_dags.example_passing_params_via_test_command.print_env_vars(test_mode=None)[source]

Print out the “foo” param passed in via airflow tasks test example_passing_params_via_test_command env_var_test_task <date> –env-vars ‘{“foo”:”bar”}’

airflow.example_dags.example_passing_params_via_test_command.run_this[source]

Was this entry helpful?