rebuilderd icon indicating copy to clipboard operation
rebuilderd copied to clipboard

add an option to use randomized queues (or make that the default)

Open h01ger opened this issue 1 year ago • 1 comments

currently rebuilderd queues packages alphabetically, which causes a side effect I'd like to be able to migate a bit:

if one runs two (or more) workers on one machine, often two or several similar packages are build at the same time. this is fine for python* packages but less good for libreoffice-* packages. if the queue order were randomized this would happen way less...

(and granted one should probably only have one worker per system, but then often still several systems run on the same physical host, so this still applies there, even though its better migated as well...)

h01ger avatar Nov 20 '24 11:11 h01ger

 echo "update queue set priority = ABS(RANDOM()) % 1000;" |sqlite3 ~/rebuilderd.db

does the trick for me.

h01ger avatar Nov 29 '24 01:11 h01ger

Seems to be fixed with #184

jspricke avatar Nov 14 '25 10:11 jspricke

I think so too, if multiple items are have identical priority and queued_at, the tie is now broken with RANDOM(), causing the initial import to be randomized (from the build queue's point of view).

kpcyrd avatar Nov 17 '25 19:11 kpcyrd