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

Change: Lock table for each auto-deleted report individually #2048

Merged
merged 2 commits into from
Jul 21, 2023

Conversation

timopollmeier
Copy link
Member

What

The auto_delete_reports function no longer keeps the access exclusive lock on the reports table for the entire loop over the reports, but instead acquires and releases the lock for each report to delete.

Why

This gives other processes, like ones deleting reports manually, a better chance to acquire the lock on the reports table.

References

GEA-2

The auto_delete_reports function no longer keeps the access exclusive
lock on the reports table for the entire loop over the reports, but
instead acquires and releases the lock for each report to delete.

This gives other processes, like ones deleting reports manually, a
better chance to acquire the lock on the reports table.
@github-actions
Copy link

Conventional Commits Report

Type Number
Changed 1

🚀 Conventional commits found.

@timopollmeier timopollmeier marked this pull request as ready for review July 18, 2023 12:54
@timopollmeier timopollmeier requested review from a team and mattmundell as code owners July 18, 2023 12:54
@jhelmold jhelmold enabled auto-merge July 21, 2023 08:11
@jhelmold jhelmold merged commit 94f9c6b into greenbone:main Jul 21, 2023
8 of 9 checks passed
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.

2 participants