run
Last updated
Last updated
prism run
is used to execute a Python-based Prism project. This is distinct from a PySpark-based Prism project, in which case you would need to use the command.
Here's what prism run
does under the hood:
It creates a pipeline consisting of the global variables from prism_project.py
and the adapters from profile.yml
.
Here's what the output looks like in Terminal:
There are no required arguments for run
.
Here are the optional arguments you can run with run
:
--full-tb
: Display full traceback if errors arise at any stage of the pipeline
--log-level
: Log level, one of info
, warn
, error
, or critical
.
--vars
: Prism variables as key-value pairs key=value
. These overwrite any variable definitions in prism_project.py
. All values are read as strings.
--context
: Prism variables as JSON. Cannot co-exist with --vars
. These overwrite any variable definitions in prism_project.py
.
--modules
: Paths to modules that you want to run; if not specified, all modules in pipeline are run. Paths should be specified relative to the modules
folder.
--all-upstream
: Run all modules upstream of those specified in --modules
--all-downstream
: Run all modules downstream of those specified in --modules
It first executes the command.
Recall that this command parses the tasks contained in the modules/
folder for tasks.ref(...)
calls, creates the dependency graph, and stores the project metadata (e.g., the configuration, the tasks.ref(...)
calls, the targets, and the ) in a manifest
.
It parses the prism_project.py
file. It also parses the configuration files listed within prism_project.py
(e.g., , ).
It executes the tasks in a .