just
just copied to clipboard
Exit parallel recipe if any dependencies exit
Given the following recipe:
[parallel]
foo: bar baz
bar:
sleep 5
echo "I am running but baz already exited!"
baz:
exit 1
I expect the recipe to immediately fail.
I was planning on using Just's parallel recipes to run our dev script, which runs a compiler in watch mode, and a server (both being never-ending). Sometimes, one or the other will crash, but the other will keep running. I would prefer if the entire recipe failed if that happened.