Skip to content
This repository has been archived by the owner on Nov 29, 2021. It is now read-only.

Queue wait time (backport #401) #403

Merged
merged 7 commits into from
May 26, 2021
Merged

Queue wait time (backport #401) #403

merged 7 commits into from
May 26, 2021

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented May 26, 2021

This is an automatic backport of pull request #401 done by Mergify.
Cherry-pick of c2fb9e4 has failed:

On branch mergify/bp/master/pr-401
Your branch is ahead of 'origin/master' by 3 commits.
  (use "git push" to publish your local commits)

You are currently cherry-picking commit c2fb9e4.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   CHANGELOG.md

no changes added to commit (use "git add" and/or "git commit -a")

To fix up this pull request, you can check it out locally. See documentation: https://help.github.com/articles/checking-out-pull-requests-locally/


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.io/

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.

This avoids ospd to start many queued scans simultaneously. So the last started scan has time enough to take some memory (launch some child processes).

(cherry picked from commit 983eff2)
…queue option

It doesn't make sense to wait time if the option is disabled.
Also, use global definition for the waiting time in seconds.

(cherry picked from commit fdca890)
Could be possible that there last scan finished in a few seconds.
Therefore check for running scans.
Although, enough available memory is still a conditional, if enabled.

(cherry picked from commit fa2cf78)
(cherry picked from commit c2fb9e4)

# Conflicts:
#	CHANGELOG.md
…n is not in the queue anymore

(cherry picked from commit 2acd57f)
(cherry picked from commit 60cc0b2)
@mergify mergify bot requested a review from a team as a code owner May 26, 2021 07:33
@mergify mergify bot added the conflicts label May 26, 2021
@codecov
Copy link

codecov bot commented May 26, 2021

Codecov Report

Merging #403 (41e7e71) into master (eefdf0e) will increase coverage by 0.13%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #403      +/-   ##
==========================================
+ Coverage   75.07%   75.20%   +0.13%     
==========================================
  Files          23       23              
  Lines        2668     2682      +14     
==========================================
+ Hits         2003     2017      +14     
  Misses        665      665              
Impacted Files Coverage Δ
ospd/ospd.py 72.37% <100.00%> (+0.59%) ⬆️

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 eefdf0e...41e7e71. Read the comment docs.

@jjnicola jjnicola merged commit e0b344a into master May 26, 2021
@jjnicola jjnicola deleted the mergify/bp/master/pr-401 branch May 26, 2021 08:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant