This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
论坛
实训
竞赛
大数据
AI开发
Register
Sign In
wangwei
/
aiforge
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
128
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
Merge branch 'V20220830' into fix-2764
tags/v1.22.8.2^2
zhoupzh
3 years ago
parent
813e5f9810
7de1c4babe
commit
d86b8a97fe
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
modules/cloudbrain/resty.go
+ 1
- 1
modules/cloudbrain/resty.go
View File
@@ -93,7 +93,7 @@ sendjob:
return nil, fmt.Errorf("resty get queues detail failed: %s", err)
}
if jobResult.Code == errInvalidToken && retry < 1 {
if
(res.StatusCode() == http.StatusUnauthorized ||
jobResult.Code == errInvalidToken
)
&& retry < 1 {
retry++
_ = loginCloudbrain()
goto sendjob
Write
Preview
Loading…
Cancel
Save