mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-12-27 05:49:04 +01:00
Remove to set ArrayJobId on DB Init
This commit is contained in:
parent
cca0722b01
commit
00fc5f4774
@ -250,9 +250,6 @@ func SanityChecks(job *schema.BaseJob) error {
|
|||||||
if len(job.Resources) != int(job.NumNodes) {
|
if len(job.Resources) != int(job.NumNodes) {
|
||||||
return fmt.Errorf("len(resources) does not equal numNodes (%d vs %d)", len(job.Resources), job.NumNodes)
|
return fmt.Errorf("len(resources) does not equal numNodes (%d vs %d)", len(job.Resources), job.NumNodes)
|
||||||
}
|
}
|
||||||
if job.ArrayJobId == 0 {
|
|
||||||
job.ArrayJobId = job.JobID
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user