Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: task status overwrite when a task is stopped and quickly restarted (not resumed) #1779

Merged
merged 2 commits into from
Feb 21, 2022

Conversation

jjnicola
Copy link
Member

@jjnicola jjnicola commented Feb 18, 2022

What:
Fix: task status overwrite when a task is stopped and quickly restarted (not resumed)

Jira: SC-505

Why:
The still stopping task will overwrite the recentrly started task (the same task, different reports). This produces that the task is set in the DB as stopped, while it was actually started in ospd-openvas. The task will run in the background.

How did you test it:
start a task, stop it, and start it again as quick as possible. Without the patch the task is stopped in gvmd but runs in background. With the patch, the it works as expected.

Checklist:

  • Tests
  • PR merge commit message adjusted

This is because the scan is in the right status. This will avoid to rewrite in the status for this report/task in the db.
It must retry only if there is a connection problem.
This reduce the waiting time when the scan task was already deleted from ospd, and will not retry.
@jjnicola jjnicola requested a review from a team February 18, 2022 07:17
@jhelmold jhelmold merged commit a34fa70 into greenbone:main Feb 21, 2022
timopollmeier added a commit that referenced this pull request Feb 22, 2022
…ed (not resumed)

Merge pull request #1784 from greenbone/mergify/bp/stable/pr-1779 (backport of #1779)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants