mirror of
https://github.com/open-compass/opencompass.git
synced 2025-05-30 16:03:24 +08:00
[Feature] Add dlc sleep time (#1562)
This commit is contained in:
parent
fe84bbd9a0
commit
c3fb9065db
@ -232,6 +232,8 @@ class DLCRunner(BaseRunner):
|
||||
while True:
|
||||
# 1. Avoid to request dlc too frequently.
|
||||
# 2. DLC job may not be ready immediately after creation.
|
||||
dlc_sleep_time = self.aliyun_cfg.get('dlc_sleep_time', 10)
|
||||
time.sleep(dlc_sleep_time)
|
||||
num_retry = 60
|
||||
for retry_index in range(num_retry):
|
||||
time.sleep(2)
|
||||
|
Loading…
Reference in New Issue
Block a user