Usage
Installation¶
runnable is a python package and should be installed like any other python package. The minimum python version
is 3.8
We recommend the installation in a virtual environment using poetry
or any other package manager.
Extras¶
The below extras expand the functionality of runnable
to different environments.
They can be installed by "pip install runnable[<extra>]"
docker
: enable pipelines/jobs in a containernotebook
: enables notebooks as tasks/jobsk8s
: enables running jobs in kubernetes or minikube clusterss3
: enables usings3
buckets forrun log store
andcatalog
Usage¶
Execute a pipeline¶
Pipelines defined in runnable can be either via python sdk or yaml
based definitions.
The options are detailed below:
runnable execute
╭─ Arguments ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ * yaml_file TEXT The pipeline definition file [default: None] [required] │
│ run_id [RUN_ID] An optional run_id, one would be generated if its not provided [env var: RUNNABLE_RUN_ID] │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --config -c TEXT The configuration file specifying the services │
│ --parameters -p TEXT Parameters, in yaml, accessible by the application │
│ --log-level [INFO|DEBUG|WARNING|ERROR|FATAL] The log level [default: WARNING] │
│ --tag TEXT A tag attached to the run │
│ --help Show this message and exit. │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Execute a job¶
Jobs defined in runnable can be via python sdk
Examples¶
All the examples in the documentation are present in the examples
directory of
the repo with instructions on how to run them.
All the examples are tested, with multiple configurations, as part of our CI test suite.