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 519 B

12345678910111213141516171819202122
  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 (h hpcScheduler) getNewStructForDb(task *types.TaskInfo, participantIds []int) (interface{}, error) {
  11. hpc := model.Hpc{
  12. TaskId: task.TaskId,
  13. Status: "Saved",
  14. //ParticipantId: participantId[0],
  15. YamlString: h.yamlString,
  16. }
  17. tool.Convert(task.Metadata, &hpc)
  18. return hpc, nil
  19. }

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.