PrismProject().run
Overview
The run
method is used to actually execute Prism projects. Here is the method definition for PrismProject.run()
:
run_id
unique ID to give this job. If not specified, then Prism will create an ID for you. This job ID will be in the format {project ID}-{uuid}
.
task_ids
list of task IDs to run. If not specified, then all tasks are run. Tasks are retrieved from the tasks_dir
path specified in the PrismProject's instantiation.
runtime_ctx
variables to add to PrismProject's ctx
. Note that variables defined in theruntime_ctx
will overwrite like-named variables defined in the PrismProject's ctx
.
all_tasks_upstream
boolean controlling whether to run all tasks upstream of those specified in task_ids
. Default is False
.
all_tasks_downstream
boolean controlling whether to run all tasks downstream of those specified in task_ids
. Default is True
.
on_success
list of callbacks to run when the job succeeds. These are run in addition to the callbacks specified in the project's instantiation.
on_failure
list of callbacks to run when the job fails. These are run in addition to the callbacks specified in the project's instantiation.
full_refresh
run all the tasks, regardless of whether or not they are already done
.
log_level
logging level, one of info
, warn
, error
, debug
, or critical
rich_logging
beautify logs in the console with the rich
package. Default is True
log_file
file in which to save the logs. If None
, then Prism will default to a file within ~/.prism/logs/
.
Examples
Last updated