ocrd_network.runtime_data.deployer module¶
Abstraction of the deployment functionality for processors.
The Processing Server provides the configuration parameters to the Deployer agent. The Deployer agent runs the RabbitMQ Server, MongoDB and the Processing Hosts. Each Processing Host may have several Processing Workers. Each Processing Worker is an instance of an OCR-D processor.
- class ocrd_network.runtime_data.deployer.Deployer(config_path: str)[source]¶
 Bases:
object- find_matching_network_agents(worker_only: bool = False, server_only: bool = False, docker_only: bool = False, native_only: bool = False, str_names_only: bool = False, unique_only: bool = False, sort: bool = False) List[str] | List[object][source]¶
 Finds and returns a list of matching data objects of type: DataProcessingWorker and DataProcessorServer.
worker_onlymatch only worker network agents (DataProcessingWorker)server_onlymatch only server network agents (DataProcessorServer)docker_onlymatch only docker network agents (DataProcessingWorker and DataProcessorServer)native_onlymatch only native network agents (DataProcessingWorker and DataProcessorServer)str_names_onlyreturns the processor_name filed instead of the Data* objectunique_onlyremove duplicate names from the matchessortsort the resultworker_only and server_only are mutually exclusive to each other docker_only and native_only are mutually exclusive to each other unique_only is allowed only together with str_names_only