Skip to content

Commit 1261939

Browse files
wanghan-iapcmHan Wang
and
Han Wang
authored
fix: retry_on_transient_error should be int (#113)
Co-authored-by: Han Wang <[email protected]>
1 parent c0e6b4c commit 1261939

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dpgen2/utils/step_config.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ def variant_executor():
4141
def template_conf_args():
4242
doc_image = 'The image to run the step.'
4343
doc_timeout = 'The time limit of the OP. Unit is second.'
44-
doc_retry_on_transient_error = 'Retry the step if a TransientError is raised.'
44+
doc_retry_on_transient_error = 'The number of retry times if a TransientError is raised.'
4545
doc_timeout_as_transient_error = 'Treat the timeout as TransientError.'
4646
doc_envs = 'The environmental variables.'
4747
return [
4848
Argument("image", str, optional=True, default=default_image, doc=doc_image),
4949
Argument("timeout", int, optional=True, default=None, doc=doc_timeout),
50-
Argument("retry_on_transient_error", bool, optional=True, default=None, doc=doc_retry_on_transient_error),
50+
Argument("retry_on_transient_error", int, optional=True, default=None, doc=doc_retry_on_transient_error),
5151
Argument("timeout_as_transient_error", bool, optional=True, default=False, doc=doc_timeout_as_transient_error),
5252
Argument("envs", dict, optional=True, default=None, doc=doc_envs),
5353
]

0 commit comments

Comments
 (0)