https://pantsbuild.org/ logo
#general
Title
# general
p

polite-garden-50641

08/03/2020, 9:51 PM
Copy code
If I specify multiple goals in the command line (for example: `./pants test lint typecheck src/python/pants/backend/python/lint::`)
 should  tests run in parallel while lint & typecheck and rules are running ? this is not the behavior I am seeing... pants seems to run each goal sequentially even though I have plenty of free CPUs...
h

hundreds-father-404

08/03/2020, 9:51 PM
Yeah it runs sequentially. That’s an enhancement we’d like to make to run multiple goals in parallel
p

polite-garden-50641

08/03/2020, 9:52 PM
ok got it.
w

witty-crayon-22786

08/03/2020, 10:10 PM
yea, should be possible to do… i hope that we can do it before we stabilize the plugin API
no ticket about it though, will file.
h

happy-kitchen-89482

08/03/2020, 10:41 PM
I'm not sure this is the right thing to do in all cases. For example, running
fmt
in parallel with many other goals will trigger race conditions.
w

witty-crayon-22786

08/03/2020, 10:59 PM
yeeeap, heh. that one is a pain. mentioned it on there… we might be able to do it by never running a goal that needs the
Workspace
concurrently with another goal
h

hundreds-father-404

08/03/2020, 11:00 PM
Is
Console
safe to have multiple goals righting at the same time?
w

witty-crayon-22786

08/03/2020, 11:01 PM
it’s not safe to have them concurrently writing, but that’s mentioned on the ticket.
the difference between that and the Workspace though is that you can’t consume/read-from the
Console
👍 1
and even if you did, you wouldn’t be able to consume the output of another goal.
2 Views