Riley Brady
09/14/2022, 8:16 PM0.18.1
) It seems that kedro run --tag some_tag1,some_tag2
will run any nodes with some_tag1
OR some_tag2
. Is there any functionality to use AND instead of OR? My workaround right now is to create a custom tag of some_tag1-some_tag2
and then calling that directly.
It would be nice if I could list out a few tags and only run nodes that have all of them. But I understand why OR is the default.David Hasson
09/14/2022, 9:28 PMonly nodes with tags and
```raw_nodes = pipeline.only_nodes_with_tags('raw')
car_nodes = pipeline.only_nodes_with_tags('cars')
raw_car_nodes = raw_nodes & car_nodes```https://stackoverflow.com/a/59132772
Antony Milne
09/15/2022, 8:41 AMpipeline_registry.py
file you can register the pipeline pipeline.filter(tags={"tag1"}).filter(tags={"tags2"})
and then run it using kedro run -p
flag.
If this is a pattern that you need to do a lot for different sets of tags then there are other ways that would make it a more generic solution so that you donโt need to manually register a whole new correctly filtered pipeline
object. But if you just need to do it as a one off then this is the easiest way ๐Riley Brady
09/15/2022, 4:53 PM