Concurrency flag leads to weird behaviour #375
Unanswered
christianruppert
asked this question in
Q&A
Replies: 1 comment
-
Thanks for all the details! You're running into a subtlety of how In the simple case where you want to run a script only in the workspace root, pass it directly to scripts:
hello:
run: echo "Hello" You don't need to use If you don't need to specify options for scripts:
hello:
exec: echo "Hello" To specify options for scripts:
hello:
run: echo "Hello"
exec:
concurrency: 1 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I thought I start a new thread, maybe its a bug - maybe I am just using it wrong. The concurrency flag is behaving weird. I tried to use it to start multiple e.g. pub gets on the packages (we have 13) to speed up certain things.
It seems to (properly) default to 5 if you do not touch it at all (which might be actually a good value, so this question is kind of low priority). But as soon as you play around with the flag the behaviour becomes a bit crazy.
In our main project I ran into infinite loops, pub get and builds basically were not finishing or got plenty confused (conflict message, all kind of funny stuff).
So I set up a small sample project which basically has a config like:
The project structure is quite simple, app includes a, b and c, where a and b include lib_a_b and c has lib_c
But I actually don't think it matter much for this issue (I was suspecting our includes were messing things up in the main project, but the behaviour is similar in this simple project)
If I execute melos (each of the option after each other) I get the following output:
output.txt
This seem kind of weird.
Lines like [package_lib_c]: [package_lib_a_b]: HELLO
I have no idea whats up here, maybe its intended behaviour, maybe some bug. I am running on windows, very simple project, if you want I can zip it and provide it. But I think I might just be misunderstanding something, or the concurrency option might be buggy in my setup.
Cheers,
Chris
PS: Really low prio, the default of 5 works fine - I just thought I mention it if anybody has similar issues.
Beta Was this translation helpful? Give feedback.
All reactions