This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
Repositories
Datasets
Forum
实训
竞赛
大数据
应用
Register
Sign In
OpenI
/
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 pull request 'fix-2751' (
#2794
) from fix-2392 into V20220830
Reviewed-on:
https://git.openi.org.cn/OpenI/aiforge/pulls/2794
Reviewed-by: lewis <747342561@qq.com>
fix-2781
lewis
2 years ago
parent
f83a9941be
a0f2f7f5b6
commit
7de1c4babe
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