| :py:mod:`airflow.example_dags.example_passing_params_via_test_command` |
| ====================================================================== |
| |
| .. py:module:: airflow.example_dags.example_passing_params_via_test_command |
| |
| .. autoapi-nested-parse:: |
| |
| Example DAG demonstrating the usage of the params arguments in templated arguments. |
| |
| |
| |
| Module Contents |
| --------------- |
| |
| |
| Functions |
| ~~~~~~~~~ |
| |
| .. autoapisummary:: |
| |
| airflow.example_dags.example_passing_params_via_test_command.my_py_command |
| airflow.example_dags.example_passing_params_via_test_command.print_env_vars |
| |
| |
| |
| Attributes |
| ~~~~~~~~~~ |
| |
| .. autoapisummary:: |
| |
| airflow.example_dags.example_passing_params_via_test_command.run_this |
| |
| |
| .. py:function:: my_py_command(params, test_mode=None, task=None) |
| |
| Print out the "foo" param passed in via |
| `airflow tasks test example_passing_params_via_test_command run_this <date> |
| -t '{"foo":"bar"}'` |
| |
| |
| .. py:function:: print_env_vars(test_mode=None) |
| |
| 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"}'` |
| |
| |
| .. py:data:: run_this |
| |
| |
| |
| |