This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
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
fix-2751
tags/v1.22.8.2^2
ychao_1983
3 years ago
parent
d7007c9bb8
commit
a0f2f7f5b6
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