This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
论坛
实训
竞赛
大数据
AI开发
Register
Sign In
JointCloud
/
pcm-coordinator
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
0
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
Merge pull request 'fix clusterResouces bugs' (
#215
) from tzwang/pcm-coordinator:master into master
Former-commit-id:
85a2da220a
pull/216/head
tzwang
1 year ago
parent
5db1db5bea
8ffc0106d7
commit
83f8865dd2
3 changed files
with
3 additions
and
3 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
api/etc/pcm.yaml
+0
-1
api/internal/logic/ai/getcenteroverviewlogic.go
+2
-1
api/internal/scheduler/database/aiStorage.go
+ 1
- 1
api/etc/pcm.yaml
View File
@@ -50,7 +50,7 @@ ACRpcConf:
# Endpoints:
# Endpoints:
# - 127.0.0.1:8888
# - 127.0.0.1:8888
NonBlock: true
NonBlock: true
Timeout:
2
0000
Timeout:
5
0000
#rpc
#rpc
CephRpcConf:
CephRpcConf:
+ 0
- 1
api/internal/logic/ai/getcenteroverviewlogic.go
View File
@@ -79,7 +79,6 @@ func (l *GetCenterOverviewLogic) GetCenterOverview() (resp *types.CenterOverview
case <-time.After(1 * time.Second):
case <-time.After(1 * time.Second):
return resp, nil
return resp, nil
}
}
}
}
func (l *GetCenterOverviewLogic) updateClusterResource(mu *sync.RWMutex, ch chan<- struct{}, list []*types.AdapterInfo) {
func (l *GetCenterOverviewLogic) updateClusterResource(mu *sync.RWMutex, ch chan<- struct{}, list []*types.AdapterInfo) {
+ 2
- 1
api/internal/scheduler/database/aiStorage.go
View File
@@ -227,7 +227,8 @@ func (s *AiStorage) SaveClusterResources(clusterId string, clusterName string, c
}
}
func (s *AiStorage) UpdateClusterResources(clusterResource *models.TClusterResource) error {
func (s *AiStorage) UpdateClusterResources(clusterResource *models.TClusterResource) error {
tx := s.DbEngin.Model(clusterResource).Updates(clusterResource)
tx := s.DbEngin.Where("cluster_id = ?", clusterResource.ClusterId).Updates(clusterResource)
if tx.Error != nil {
if tx.Error != nil {
return tx.Error
return tx.Error
}
}
Write
Preview
Loading…
Cancel
Save