Exemplo n.º 1
0
 def __init__(self, configfile):
     self.expected_keys.update({'storage': ['proto', 'uri']})
     super(PublicApi, self).__init__(configfile)
     api = Contexts.api()
     generate_public_api(api)
     app = Application.api(api=api)
     app.run()
Exemplo n.º 2
0
 def __init__(self, configfile):
     app = Factories.celery_factory()
     super(PeriodicWorker, self).__init__(configfile)
     worker = Application.worker(name='worker.periodic',
                                 queues=['periodic'],
                                 level=self.loglevel)
     worker.run()
Exemplo n.º 3
0
 def __init__(self, configfile):
     app = Factories.celery_factory()
     super(MatchingWorker, self).__init__(configfile)
     worker = Application.worker(name='worker.matching',
                                 queues=['matching'],
                                 level=self.loglevel)
     worker.run()
Exemplo n.º 4
0
 def __init__(self, configfile):
     self.security_defs.update({
         SEC_CMPT_KEY: ComponentAuthModel
     })
     super(StorageApi, self).__init__(configfile)
     api = Contexts.api()
     generate_storage_api(api)
     app = Application.api(api=api)
     app.run()
Exemplo n.º 5
0
 def __init__(self, configfile):
     app = Factories.celery_factory()
     app.on_after_configure.connect(periodic.setup_periodic_tasks)
     super(PeriodicBeater, self).__init__(configfile)
     beater = Application.beat(level=self.loglevel)
     beater.run()
Exemplo n.º 6
0
 def __init__(self, configfile):
     super(AvailableApi, self).__init__(configfile)
     api = Contexts.api()
     generate_available_api(api)
     app = Application.api(api=api)
     app.run()
Exemplo n.º 7
0
 def __init__(self, configfile):
     super(CRUDApi, self).__init__(configfile)
     api = Contexts.api()
     generate_crud_api(api)
     app = Application.api(api=api)
     app.run()
Exemplo n.º 8
0
 def __init__(self, configfile):
     super(ProcessingWorker, self).__init__(configfile)
     worker = Application.worker(name='worker.processing',
                                 queues=['processing'],
                                 level=self.loglevel)
     worker.run()