Commit 634b398a authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

rewrite retry

parent ad5625cc
Pipeline #11560 passed with stage
......@@ -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}")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment