added getComputeCards api
Former-commit-id: 78b5fa73e9106a813df8d05e57c1e5dfd0a219a4
This commit is contained in:
parent
9ec3a048b0
commit
fb957526e5
|
@ -972,6 +972,9 @@ service pcm {
|
||||||
|
|
||||||
@handler UploadAlgothmCodeHandler
|
@handler UploadAlgothmCodeHandler
|
||||||
post /schedule/getDownloadAlgothmCode (UploadAlgorithmCodeReq) returns (UploadAlgorithmCodeResp)
|
post /schedule/getDownloadAlgothmCode (UploadAlgorithmCodeReq) returns (UploadAlgorithmCodeResp)
|
||||||
|
|
||||||
|
@handler GetComputeCardsByClusterHandler
|
||||||
|
get /schedule/getComputeCardsByCluster/:adapterId/:clusterId (GetComputeCardsByClusterReq) returns (GetComputeCardsByClusterResp)
|
||||||
}
|
}
|
||||||
|
|
||||||
@server(
|
@server(
|
||||||
|
|
|
@ -129,4 +129,13 @@ type (
|
||||||
|
|
||||||
UploadAlgorithmCodeResp {
|
UploadAlgorithmCodeResp {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GetComputeCardsByClusterReq {
|
||||||
|
AdapterId string `path:"adapterId"`
|
||||||
|
ClusterId string `path:"clusterId"`
|
||||||
|
}
|
||||||
|
|
||||||
|
GetComputeCardsByClusterResp {
|
||||||
|
Cards []string `json:"cards"`
|
||||||
|
}
|
||||||
)
|
)
|
|
@ -77,7 +77,7 @@ func (l *GetCenterTaskListLogic) GetCenterTaskList() (resp *types.CenterTaskList
|
||||||
select {
|
select {
|
||||||
case _ = <-ch:
|
case _ = <-ch:
|
||||||
return resp, nil
|
return resp, nil
|
||||||
case <-time.After(1 * time.Second):
|
case <-time.After(2 * time.Second):
|
||||||
return resp, nil
|
return resp, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue