swh.storage.proxies.blocking.cls module#
- swh.storage.proxies.blocking.cls.blocking_overhead_timer(method_name: str) DifferentialTimer[source]#
Return a properly setup DifferentialTimer for
method_nameof the storage
- class swh.storage.proxies.blocking.cls.BlockingProxyStorage(storage: Dict | StorageInterface, db: str | None = None, blocking_db: str | None = None, min_pool_conns: int = 1, max_pool_conns: int = 5)[source]#
Bases:
objectBlocking storage proxy
This proxy prevents visits from a known list of origins to be performed at all.
It uses a specific PostgreSQL database (which for now is colocated with the swh.storage PostgreSQL database), the access to which is implemented in the
blocking.dbsubmodule.Sample configuration
- origin_visit_add(visits: List[OriginVisit]) Iterable[OriginVisit][source]#