Skip to content

Commit

Permalink
fix: integration client tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MehmedGIT committed Oct 1, 2024
1 parent 0e80a7c commit d7df200
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ocrd_network/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ def check_job_status(self, job_id: str):
def check_workflow_status(self, workflow_job_id: str):
return get_ps_workflow_job_status(self.server_addr_processing, workflow_job_id=workflow_job_id)

def poll_job_status(self, job_id: str, print_state: bool) -> str:
def poll_job_status(self, job_id: str, print_state: bool = False) -> str:
return poll_job_status_till_timeout_fail_or_success(
ps_server_host=self.server_addr_processing, job_id=job_id, tries=self.polling_tries, wait=self.polling_wait,
print_state=print_state)

def poll_workflow_status(self, job_id: str, print_state: bool) -> str:
def poll_workflow_status(self, job_id: str, print_state: bool = False) -> str:
return poll_wf_status_till_timeout_fail_or_success(
ps_server_host=self.server_addr_processing, job_id=job_id, tries=self.polling_tries, wait=self.polling_wait,
print_state=print_state)
Expand Down

0 comments on commit d7df200

Please sign in to comment.