Project

General

Profile

action #97763

Updated by livdywan over 2 years ago

## Motivation 

 Idle instances of openQA, e.g. personal single-user developer instances, only trigger cleanup jobs when quota usage is likely to change, e.g. when new builds or jobs are scheduled or jobs complete. 

 ## Acceptance criteria 
 - **AC1**: Cleanup is triggered based on job finished event 
 - **AC2**: No extra minion job for every single finished job 

 ## Suggestion 
 - Look into existing check for Cleanup is triggered based on available space 
 - Extend the minion job that already exists to check for "assets" quota, see [Limit.pm](https://github.com/os-autoinst/openQA/blob/84e973fa8af13a159ecb68fad82bf0f250aeb34b/lib/OpenQA/Task/Job/Limit.pm#L55)

Back