Project

General

Profile

Actions

action #89224

closed

Limit execution time of hook scripts run within Minion

Added by mkittler about 3 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Feature requests
Target version:
Start date:
2021-02-26
Due date:
2021-03-16
% Done:

0%

Estimated time:

Description

motivation

Today we've seen that a few finalize_job_results blocked the whole Minion job queue for quite a while (until manually aborted) because the command grep -qPzo '(?s)Gru job failed.*connection error.*Inactivity timeout' from the hook script openqa-label-known-issues kept the Minion workers busy.

acceptance criteria

  • AC1: Hook scripts are aborted after a configurable timeout.

further notes

  • I'm not sure what makes these openQA jobs which take so long to be investigated special but e.g. https://openqa.suse.de/tests/5527320 is one of them.
  • Maybe openqa-label-known-issues can be made more efficient as well. Note that the mentioned grep command actually caused a considerable CPU usage so the script wasn't just waiting for something.
Actions

Also available in: Atom PDF