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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

A Pending Scan Task Freezes the Queue if its Associated Scan is Deleted #2596

Open
Matthew-Grayson opened this issue Mar 1, 2024 · 0 comments
Labels
Backend ASM-VDB Technical Infrastructure and Database

Comments

@Matthew-Grayson
Copy link
Contributor

馃悰 Summary

If a scan task is pending when its associated scan is deleted, the queuing system will freeze and prevent other scans from running.

To reproduce

As a Global User, navigate to the scans pages and create a scan.
Click the run button several times and delete the scan.
Create a new scan and click the run button.
Confirm that the new scan doesn't run.
You may also look at the scan_task table to confirm that the old scan tasks have a pending status.

Expected behavior

I suggest we add logic to the scheduler to mark the orphaned scan tasks as finished and/or delete them.

@Matthew-Grayson Matthew-Grayson added the Backend ASM-VDB Technical Infrastructure and Database label Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend ASM-VDB Technical Infrastructure and Database
Projects
None yet
Development

No branches or pull requests

1 participant