Ways to connect stages (DAG)

Hi,
As far as I know the stages are connected through the dependency/output pair relation. Is there another way I can connect them?
Let’s say I have a script for data validation and it is not producing any output but I still want it to be run first before any other stages. I also want the pipeline to stop if the script throws any exception.

Or is this a bad design?

Hi @Dano !

It is not possible right now, but I would not say it is a bad design.

There is a feature request in `dvc stage add`: dependencies to stages without outs · Issue #8881 · iterative/dvc · GitHub , don’t hesitate to comment/upvote there

Thanks for the fast answer