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

Consolidate initalizing Ops classes #2111

Closed tw4l closed 3 weeks ago

tw4l commented 1 month ago

https://github.com/webrecorder/browsertrix/pull/2098 introduced a new main_bg entrypoint for background jobs that require access to our ops classes. This means we now have up to three places to update each time we change the signature for the ops classes init methods.

We should consolidate these, perhaps with a util function, to reduce the overhead of making changes and the likelihood of regressions.