Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-pipeline
csst_common
Commits
634b398a
Commit
634b398a
authored
Dec 18, 2025
by
BO ZHANG
🏀
Browse files
rewrite retry
parent
ad5625cc
Pipeline
#11560
passed with stage
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
csst_common/utils/_retry.py
View file @
634b398a
...
...
@@ -17,7 +17,7 @@ def retry(func, *args, **kwargs):
else
:
n_try
=
5
# is DFS?
is_dfs
=
func
.
__
self__
.
__
class__
.
__module__
.
startswith
(
"csst_dfs_client"
)
is_dfs
=
func
.
__class__
.
__module__
.
startswith
(
"csst_dfs_client"
)
# start trials
for
attempt
in
range
(
n_try
):
print
(
f
"Trial #
{
attempt
}
: call
{
func
}
"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment