Run multiple just rules in parallel

204 Views Asked by At

I would like to run all dependent rules in my justfile to run in parallel. How do I do this?

pull-all: pull-a pull-b

pull-a:
    docker pull a

pull-b:
    docker pull b

When I run just pull-all, just runs the two dependents pull-a and pull-b sequentially, in the order they are listed after pull-all:.

Is there a way to tell just to run both of them at the same time in parallel?

I looked at the documentation but couldn't find any mention of "parallel" and only one mention of "order".

1

There are 1 best solutions below

0
Jonathan Hult On

It is not yet supported, but there is a feature request (and an open PR).

Two other things that you may want to investigate: