mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-12-25 16:26:17 +01:00
Add and adapt api handlers for nats
This commit is contained in:
@@ -136,6 +136,7 @@ func InitDB() error {
|
||||
|
||||
// This function also sets the subcluster if necessary!
|
||||
func SanityChecks(job *schema.BaseJob) error {
|
||||
// Missing check on Slurm JobID?
|
||||
if c := archive.GetCluster(job.Cluster); c == nil {
|
||||
return fmt.Errorf("no such cluster: %v", job.Cluster)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user