This message was deleted.
# ask-anything
s
This message was deleted.
e
so you have a pipeline param and you want to ignore certain branches if it has certain value? is the parameter something you put in your
pipeline.yaml
or some runtime parameter computed inside a task
b
so you have a pipeline param and you want to ignore certain branches if it has certain value?
correct
is the parameter something you put in your
pipeline.yaml
correct
e
unfortunately, we don't have a way to do so. but you can implement a wrapper using the Python API. essentially grab the parameter , and then call
dag.build_partially
depending on the value. check out this example: https://github.com/ploomber/projects/tree/master/cookbook/python-load
b
makes sense, thanks 👍
e
sure, feel free to ask any other questions if you encounter issues implementing this, but hopefully, it'll be straightforward
👍 1
one thing I noticed, in the example, the function returns a DAG object, in your case, you want to call
dag.build_partially
so you wont be able to use the CLI, but rather something like
python pipeline.py
to execute the pipeline
b
yep, time to learn the python API 🙂
👍 1
🙌 1