Slackbot
02/24/2022, 4:54 AMEduardo
git checkout v1 # go to tag v1
ploomber build # store outputs in products/v1
git checkout v2 # go to tag v2
ploomber build # store outputs in products/v2
Eduardo
Arman
02/24/2022, 5:34 AMArman
02/24/2022, 5:41 AMEduardo
Eduardo
Eduardo
tasks:
# tasks.get, features and join are python functions
- source: tasks.get
product: '{{products}}/get.parquet'
- source: tasks.features
product: '{{products}}/features.parquet'
- source: tasks.join
product: '{{products}}/join.parquet'
# fit.py is a script
- source: fit.py
name: fit
product:
# that generates an html report as output
nb: '{{products}}/nb.html'
model: '{{products}}/model.pickle'
# only show outputs (not code) in the report
nbconvert_export_kwargs:
exclude_input: True
Eduardo
env.yaml
with this:
_module: .
products: '{{git}}'
Eduardo
pipeline.yaml
Eduardo
ploomber status
, you'll see that the prefix changes depending on the tag/commitEduardo
{{product}}
prefix to only a few tasks, in that case some tasks can go to a common folder (say products
) and others to the versioned folder (v1/
, v2/
)Arman
02/24/2022, 5:56 AMArman
02/24/2022, 5:56 AMEduardo
Arman
02/24/2022, 5:57 AMEduardo
Eduardo
Arman
02/24/2022, 6:00 AMArman
02/24/2022, 6:01 AMEduardo
Eduardo
Arman
02/24/2022, 6:19 AMEduardo