swh.objstorage.backends.winery.gunicorn module#
- swh.objstorage.backends.winery.gunicorn.shutdown_storage_backend()[source]#
Run on_shutdown callback for storage when a worker is terminating
- class swh.objstorage.backends.winery.gunicorn.ThrottledAccessLog(interval: int = 60, status_codes: Tuple[int, ...] = (200,))[source]#
Bases:
Filter
Throttle gunicorn access log lines for status_codes to at most one every interval seconds
Initialize a filter.
Initialize with the name of the logger which, together with its children, will have its events allowed through the filter. If no name is specified, allow every event.