| |
@@ -55,7 +55,7 @@
|
| |
})) == 1
|
| |
|
| |
@pytest.mark.parametrize('background,result',
|
| |
- [(True, PRIORITY_SECTION_SIZE), (False, 0)])
|
| |
+ [(True, 2*PRIORITY_SECTION_SIZE), (False, 0)])
|
| |
def test_frontend_priority(background, result):
|
| |
task = BuildQueueTask({
|
| |
"build_id": "9",
|
| |
@@ -70,4 +70,4 @@
|
| |
"project_owner": "cecil",
|
| |
"background": background,
|
| |
})
|
| |
- assert task.frontend_priority == result + 2*PRIORITY_SECTION_SIZE
|
| |
+ assert task.frontend_priority == result + PRIORITY_SECTION_SIZE
|
| |
Previously we prioritized all SRPM (even background) tasks, rather than
normal (non-background) tasks. After testing this for some time (about
a month) in production it seems like a slightly better and more fair
variant. This topic was discussed e.g. in #817 #1295.