ocrd_network.server_cache module¶
- class ocrd_network.server_cache.CacheLockedPages[source]¶
Bases:
object
- class ocrd_network.server_cache.CacheProcessingRequests[source]¶
Bases:
object
- async consume_cached_requests(workspace_key: str) List[PYJobInput] [source]¶
- sync_consume_cached_requests(workspace_key: str) List[PYJobInput] [source]¶
- update_request_counter(workspace_key: str, by_value: int) int [source]¶
A method used to increase/decrease the internal counter of some workspace_key by by_value. Returns the value of the updated counter.
- cache_request(workspace_key: str, data: PYJobInput)[source]¶
- async cancel_dependent_jobs(workspace_key: str, processing_job_id: str) List[PYJobInput] [source]¶
- sync_cancel_dependent_jobs(workspace_key: str, processing_job_id: str) List[PYJobInput] [source]¶