DBND provides a command-line interface that enables you to run pipelines and tasks, and configure the installation.
The basic syntax is
dbnd <command name> followed by positional arguments and then one or more named arguments.
$dbnd run --help
run command is used to run DBND tasks and pipelines from the command line. Run specific and global configuration parameters can also be set from the command line.
from dbnd import task @task def prepare_data(data: str) -> str: return data
$dbnd run prepare_data
See Task Discovery for the proper way of referencing tasks in the command line.
It is possible to run tasks in a pipeline in parallel with the help of
local_parallel executor. You can use
dbnd run <task_name> --parallel. Keep it in mind that
--parallel is only supported with dbnd-airflow installed. If you still get errors when trying to run tasks in parallel, make sure that Airflow is specified in the cfg file. Make sure to use a non-SQLite database for your Airflow or you won't be able to run tasks in parallel.
dbnd run calculate_alpha --task-version now --parallel
--open-web-tabto open the result of a run in a new tab in the Databand UI.
Updated 6 months ago