Browse Source

fix hpc slurm status

Signed-off-by: jagger <cossjie@foxmail.com>
pull/465/head
jagger 7 months ago
parent
commit
c2c2113f5d
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      internal/scheduler/service/hpc/slurm.go

+ 2
- 0
internal/scheduler/service/hpc/slurm.go View File

@@ -69,6 +69,8 @@ func (c *ParticipantHpc) GetTask(ctx context.Context, taskId string) (*collector
resp.Status = constants.Pending
case "WAITING":
resp.Status = constants.Waiting
case "CANCELLED":
resp.Status = constants.Cancelled
default:
resp.Status = "undefined"
}


Loading…
Cancel
Save