Skip to content
This repository was archived by the owner on May 8, 2024. It is now read-only.

251 backoff verbosity #254

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion unity-test/step_defs/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from . import TEST_BASE_DIR
from .utils import JsonReader


FEATURES_DIR = TEST_BASE_DIR.joinpath("features")
reader = JsonReader()

Expand Down
3 changes: 2 additions & 1 deletion unity-test/step_defs/test_get_processing_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ def created_response(response):
(requests.exceptions.HTTPError),
max_time=3600,
jitter=None,
interval=1,
logger=None,
interval=10,
)
def request_job_status_by_id(process_service_endpoint, project_process_dict, job_id):
return _request_job_status_by_id(
Expand Down
6 changes: 4 additions & 2 deletions unity-test/step_defs/test_job_database_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def fatal_status(e):
max_time=3600,
giveup=fatal_status,
jitter=None,
interval=0.1, # check more frequently since jobs can execute quickly
logger=None,
interval=1, # check more frequently since jobs can execute quickly
)
def request_job_status_by_id_running(process_service_endpoint, project_process_dict, job_id):
job_status_response = _request_job_status_by_id(
Expand All @@ -69,9 +70,10 @@ def request_job_status_by_id_running(process_service_endpoint, project_process_d
@backoff.on_exception(
backoff.constant,
(AssertionError, requests.exceptions.HTTPError),
max_time=3600,
max_time=60,
giveup=fatal_status,
jitter=None,
logger=None,
interval=1,
)
def request_job_status_by_id_succeeded(process_service_endpoint, project_process_dict, job_id):
Expand Down
3 changes: 2 additions & 1 deletion unity-test/step_defs/test_successful_execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ def fatal_status(e):
max_time=3600,
giveup=fatal_status,
jitter=None,
interval=1,
logger=None,
interval=5,
)
def request_job_status_by_id(process_service_endpoint, project_process_dict, job_id):
job_status_response = _request_job_status_by_id(
Expand Down