def __init__(self, opts):
        """constructor provides access to the configuration options"""
        super(FunctionComponent, self).__init__(opts)
        options = opts.get(SECTION_SCHEDULER, {})

        validate_app_config(options)

        self.res_scheduler = ResilientScheduler(options.get("db_url"),
                                                options.get("datastore_dir"),
                                                options.get("thread_max"),
                                                options.get("timezone"))
Ejemplo n.º 2
0
 def _reload(self, event, opts):
     """Configuration options have changed, save new values"""
     self.opts = opts
     options = opts.get(SECTION_SCHEDULER, {})
     validate_app_config(options)