Add and adapt api handlers for nats

This commit is contained in:
Christoph Kluge
2024-08-12 09:03:53 +02:00
parent f4a414fa6e
commit d729fdfec1
2 changed files with 165 additions and 53 deletions

View File

@@ -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)
}