-
Notifications
You must be signed in to change notification settings - Fork 289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new priority modes to --spawn-with-priority #1967
Conversation
f0e31b6
to
332ac7a
Compare
db49498
to
4eb5bb2
Compare
Wonderful! Just clarifying, when I started an agent on this branch like this:
or
I get:
Not what's in the PR message:
I think that's correct, just wanting to document the difference. |
This seems to work great, with the equals signs combining the flags with the arguments:
But this doesn't, where arguments are separated:
It still spawns 5 agents, but with priorities ascending. (That said, it doesn't complain about unknown arguments, so something's happening.) Can this work as well? |
There's a limitation to the flag parser. Flags are either Perhaps it should just be a string flag? |
4eb5bb2
to
f8fa990
Compare
7c8cd4b
to
900dbf0
Compare
I made it a string flag (value required). |
I'm closing this with an eye to making |
In #1929 it was pointed out that, when using
--spawn-with-priority
, the workload tends to be unevenly spread. Agents with fewer spawn will not have any spawn with as high a priority as agents with more spawn. Because work is assigned to available agents with the highest priority first, work ends up assigned only to agents with more spawn, and no work is assigned to the agents with fewer spawn (until the agents with more spawn become busy). This PR changes--spawn-with-priority
to be a string flag, letting the user choose the priority assignment.Example commands:
Fixes #1929
Edit: changed from using an experiment to a single flag
Edit 2: changed from
inverse
to a variety of options.Edit 3: fixed the example commands
Edit 4: changed away from the bool-like flag (fully breaking change)