Skip to content

Commit 93fb9f5

Browse files
committed
Lower the prio of archiving jobs to avoid piling up finalize jobs
This reverses the prio of archiving and finalize jobs so finalize jobs are now more important. This makes sense because finalize jobs are also invoking hook scripts and are therefore more important than archiving which has less notable consequences if delayed. Related ticket: https://progress.opensuse.org/issues/190344
1 parent 51dbf9f commit 93fb9f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/OpenQA/Task/Job/Limit.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ sub _limit ($job, $args = undef) {
5353

5454
my $groups = $schema->resultset('JobGroups');
5555
my $gru = $app->gru;
56-
my %options = (priority => 0, ttl => 2 * ONE_DAY);
56+
my %options = (priority => -20, ttl => 2 * ONE_DAY);
5757
while (my $group = $groups->next) {
5858
my $preserved_important_jobs;
5959
$group->limit_results_and_logs(\$preserved_important_jobs);

0 commit comments

Comments
 (0)