From 66085392bc35334530b520b859f8760dc3518b80 Mon Sep 17 00:00:00 2001 From: Mehmed Mustafa Date: Fri, 23 Aug 2024 08:43:19 +0200 Subject: [PATCH] refactor client cli: process -> run --- src/ocrd_network/cli/client.py | 2 +- src/ocrd_network/client.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ocrd_network/cli/client.py b/src/ocrd_network/cli/client.py index f6593fb147..9c7f15c88f 100644 --- a/src/ocrd_network/cli/client.py +++ b/src/ocrd_network/cli/client.py @@ -90,7 +90,7 @@ def check_processing_job_status(address: Optional[str], processing_job_id: str): print(f"Processing job status: {job_status}") -@processing_cli.command('processor') +@processing_cli.command('run') @click.argument('processor_name', required=True, type=click.STRING) @click.option('--address', help='The address of the Processing Server. If not provided, ' diff --git a/src/ocrd_network/client.py b/src/ocrd_network/client.py index ff9ad870e3..8ec8e541ea 100644 --- a/src/ocrd_network/client.py +++ b/src/ocrd_network/client.py @@ -28,7 +28,7 @@ def __init__( verify_server_protocol(self.server_addr_processing) self.polling_timeout = timeout self.polling_wait = wait - self.polling_tries = int(timeout/wait) + self.polling_tries = int(timeout / wait) def check_deployed_processors(self): return get_ps_deployed_processors(ps_server_host=self.server_addr_processing)