code: public void autoSchedulePipelinesFromRequestBuffer() {
          synchronized (autoScheduleMutex) {
              try {
                  for (Entry<CaseInsensitiveString, BuildCause> entry : pipelineScheduleQueue.toBeScheduled().entrySet()) {
                      CaseInsensitiveString pipelineName = entry.getKey();
                      BuildCause buildCause = entry.getValue();
  
                      LOGGER.info("[Pipeline Schedule] Scheduling pipeline {} with build cause {}", pipelineName, buildCause);
  
                      long schedulingStartTime = System.currentTimeMillis();
                      Pipeline pipeline = schedulePipeline(pipelineName, buildCause);
                      long schedulingEndTime = System.currentTimeMillis();
  
                      if (pipeline != null) {
                          schedulingPerformanceLogger.scheduledPipeline(pipelineName, pipelineScheduleQueue.toBeScheduled().size(), schedulingStartTime, schedulingEndTime);
                      }
                  }
              } catch (Throwable e) {
                  LOGGER.error("[Pipeline Schedule] An exception occurred while scheduling the pipeline. {}", e);
              }
          }
      }
docs: Note: This is called from a Spring timer