greenbone / ospd

OSPd is a framework for vulnerability scanners which share the same communication protocol: OSP (Open Scanner Protocol)
GNU Affero General Public License v3.0
30 stars 36 forks source link

Queue wait time #401

Closed jjnicola closed 3 years ago

jjnicola commented 3 years ago

What: Wait a minute between scans starts.

Why: Currently the queue system in ospd prevents to start a new scan if there is not enough available memory. This produces that new scans are put in the queue, while the memory condition is not satisfied. Once some memory is released, all scans in queue are started. In the issue mentioned above, I pasted what I found in the log.

How:

Checklist:

codecov[bot] commented 3 years ago

Codecov Report

Merging #401 (8687776) into ospd-20.08 (11395cd) will increase coverage by 0.13%. The diff coverage is 100.00%.

Impacted file tree graph

@@              Coverage Diff               @@
##           ospd-20.08     #401      +/-   ##
==============================================
+ Coverage       74.41%   74.55%   +0.13%     
==============================================
  Files              23       23              
  Lines            2627     2641      +14     
==============================================
+ Hits             1955     1969      +14     
  Misses            672      672              
Impacted Files Coverage Δ
ospd/ospd.py 72.31% <100.00%> (+0.57%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 11395cd...8687776. Read the comment docs.