You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

hpcScheduler.go 612 B

1234567891011121314151617181920212223242526
  1. package scheduler
  2. import (
  3. "gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
  4. "gitlink.org.cn/jcce-pcm/pcm-coordinator/model"
  5. "gitlink.org.cn/jcce-pcm/utils/tool"
  6. )
  7. type hpcScheduler struct {
  8. yamlString string
  9. }
  10. func NewHpcScheduler(val string) *hpcScheduler {
  11. return &hpcScheduler{yamlString: val}
  12. }
  13. func (h hpcScheduler) getNewStructForDb(task *types.TaskInfo, participantIds []int64) (interface{}, error) {
  14. hpc := model.Hpc{
  15. TaskId: task.TaskId,
  16. Status: "Saved",
  17. //ParticipantId: participantId[0],
  18. YamlString: h.yamlString,
  19. }
  20. tool.Convert(task.Metadata, &hpc)
  21. return hpc, nil
  22. }

PCM is positioned as Software stack over Cloud, aiming to build the standards and ecology of heterogeneous cloud collaboration for JCC in a non intrusive and autonomous peer-to-peer manner.