You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: octue/resources/child.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -72,7 +72,7 @@ def ask(
72
72
raise_errors=True,
73
73
max_retries=0,
74
74
prevent_retries_when=None,
75
-
log_final_retry_error=True,
75
+
log_errors=True,
76
76
timeout=86400,
77
77
maximum_heartbeat_interval=300,
78
78
):
@@ -100,7 +100,7 @@ def ask(
100
100
:param bool raise_errors: if `True` and the question fails, raise the error; if False, return the error
101
101
:param int max_retries: if `raise_errors=False` and the question fails, retry the question up to this number of times
102
102
:param list(type)|None prevent_retries_when: if `raise_errors=False` and the question fails, prevent retrying the question if it fails with an exception type in this list
103
-
:param bool log_final_retry_error: if `True`, `raise_errors=False`, and the question fails after its final retry, log the error
103
+
:param bool log_errors: if `True`, `raise_errors=False`, and the question fails after its final retry, log the error
104
104
:param float timeout: time in seconds to wait for an answer before raising a timeout error
105
105
:param float|int maximum_heartbeat_interval: the maximum amount of time (in seconds) allowed between child heartbeats before an error is raised
106
106
:raise TimeoutError: if the timeout is exceeded while waiting for an answer
@@ -160,14 +160,14 @@ def ask(
160
160
logger.info("Retrying question %r %d of %d times.", question_uuid, retry+1, max_retries)
0 commit comments