webrecorder / browsertrix

Browsertrix is the hosted, high-fidelity, browser-based crawling service from Webrecorder designed to make web archiving easier and more accessible for all!
https://webrecorder.net/browsertrix
GNU Affero General Public License v3.0
201 stars 35 forks source link

Move org deletion to background job with access to backend ops classes #2098

Closed tw4l closed 1 month ago

tw4l commented 1 month ago

Related to #1898

This PR introduces background jobs that have full access to the backend ops classes and moves the delete org job to a background job.

We will likely want to move additional functionality into background jobs in subsequent PRs, but I'm hoping to merge this before too long so that we can use it for handling changes to storage as part of #2093

If we want to close the attached issue with this PR, I can split out the additional follow-up tasks into separate issues.