code: func loadConfigIntervals() error {
  
  	intervals := Configuration.Intervals
  	for i := range intervals {
  		interval := contract.Interval{
  			ID:         "",
  			Timestamps: contract.Timestamps{},
  			Name:       intervals[i].Name,
  			Start:      intervals[i].Start,
  			End:        intervals[i].End,
  			Frequency:  intervals[i].Frequency,
  			Cron:       intervals[i].Cron,
  			RunOnce:    intervals[i].RunOnce,
  		}
  
  		// query scheduler service for interval in memory queue
  		_, errExistingSchedule := scClient.QueryIntervalByName(interval.Name)
  
  		if errExistingSchedule != nil {
  			// add the interval support-scheduler
  			newIntervalID, errAddedInterval := addIntervalToSchedulerDB(interval)
  			if errAddedInterval != nil {
  				LoggingClient.Error("problem adding interval to the scheduler database:" + errAddedInterval.Error())
  				return errAddedInterval
  			}
  
  			// add the support-scheduler scheduler.id
  			interval.ID = newIntervalID
  
  			// add the interval to the scheduler
  			err := scClient.AddIntervalToQueue(interval)
  
  			if err != nil {
  				LoggingClient.Error("problem loading interval from the scheduler config: " + err.Error())
  				return err
  			}
  		} else {
  			LoggingClient.Debug("did not add interval as it already exists in the scheduler database", "name", interval.Name)
  		}
  	}
  
  	return nil
  }
docs: // Load intervals