Project

General

Profile

Actions

action #55241

closed

Prevent spamming cleanup jobs

Added by mkittler over 4 years ago. Updated over 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Organisational
Target version:
Start date:
2019-08-08
Due date:
% Done:

0%

Estimated time:

Description

limit_assets and limit_results_and_logs jobs are created quite frequently on an intensively used openQA instance such as OSD (see https://openqa.suse.de/minion/jobs?state=finished). Most of these jobs are cancelled because the previously started job hasn't been finished yet.

All these jobs are quite a distraction when using the Minion dashboard. Besides, creating so many of these jobs seems quite wasteful.

So far these both cleanup tasks are created when a new ISO is scheduled and that can be quite frequent (see https://openqa.suse.de/admin/productlog). Just consider the frequency of ISO posts alone from user osukup:

select p.t_created, nickname from scheduled_products as p join users on user_id=users.id where nickname = 'osukup' order by t_created desc limit 20;
      t_created      | nickname 
---------------------+----------
 2019-08-08 06:07:25 | osukup
 2019-08-08 03:08:26 | osukup
 2019-08-08 03:08:25 | osukup
 2019-08-08 03:08:25 | osukup
 2019-08-08 03:08:25 | osukup
 2019-08-08 03:08:24 | osukup
 2019-08-08 03:08:24 | osukup
 2019-08-08 03:08:23 | osukup
 2019-08-08 03:08:23 | osukup
 2019-08-08 03:08:23 | osukup
 2019-08-08 03:08:22 | osukup
 2019-08-08 03:08:22 | osukup
 2019-08-08 03:08:21 | osukup
 2019-08-08 03:08:20 | osukup
 2019-08-08 03:08:20 | osukup
 2019-08-08 03:08:20 | osukup
 2019-08-08 03:08:19 | osukup
 2019-08-08 03:08:19 | osukup
 2019-08-08 02:07:02 | osukup
 2019-08-08 02:07:02 | osukup
(20 Zeilen)

One suggestion to solve the problem would be to enqueue these tasks periodically. I would add a systemd timer in the same way as for the audit event cleanup. In this case it would make sense to activate the timers automatically when the web UI service is started.


Related issues 1 (0 open1 closed)

Related to openQA Project - action #55922: limit tasks needs to be limited (in runtime)Resolvedmkittler2019-08-24

Actions
Actions

Also available in: Atom PDF