コード例 #1
0
 def configuration(self):
     """
     Returns the scheduler configuration
     :return: scheduler configuration
     """
     if self._configuration is None:
         self._configuration = configuration.get_scheduler_configuration(
             self._logger)
     return self._configuration
コード例 #2
0
 def configuration(self):
     """
     Gets the configuration passed in the event
     :return: scheduler configuration
     """
     if self._configuration is None:
         # need to reconstruct configuration from dictionary in event
         self._configuration = SchedulerConfigBuilder.configuration_from_dict(
             self._event["configuration"])
         # for large configurations the schedules are not passed in the event, need to reload these here
         if len(self._configuration.schedules) == 0:
             loaded_config = configuration.get_scheduler_configuration(
                 self._logger)
             self._configuration.schedules = loaded_config.schedules
     return self._configuration