def load_config
      @config = YAML.safe_load(ERB.new(File.read(config_path)).result)
      @queue_ahead = @config["queue_ahead"] || Task::DEFAULT_QUEUE_AHEAD_MINUTES
      @queue_name = @config["queue_name"] || "default"
      @time_zone = @config["tz"] || Time.zone.tzinfo.name
      @config.delete("queue_ahead")
      @config.delete("queue_name")
      @config.delete("tz")
    end
def load_config
      @config = YAML.safe_load(ERB.new(File.read(config_path)).result)
      @queue_ahead = @config["queue_ahead"] || Task::DEFAULT_QUEUE_AHEAD_MINUTES
      @queue_name = @config["queue_name"] || "default"
      @time_zone = @config["tz"] || Time.zone.tzinfo.name
      @config.delete("queue_ahead")
      @config.delete("queue_name")
      @config.delete("tz")
    end
Load the global scheduler config from the YAML file.