示例#1
0
    def _setup_database(self):
        self.connection = database_engine.connect()

        datastores.initialize(engine=self.connection)
        datastores.create_tables(engine=self.connection)

        self.transaction = self.connection.begin()
示例#2
0
    def _setup_database(self):
        self.connection = database_engine.connect()

        datastores.initialize(engine=self.connection)
        datastores.create_tables(engine=self.connection)

        self.transaction = self.connection.begin()
示例#3
0
文件: main.py 项目: dentafrice/ocelot
from ocelot.services import datastores
from ocelot.services.pipeline import PipelineService

if __name__ == '__main__':
    datastores.create_tables()
    datastores.initialize()

    # XKCD
    #  PipelineService.run_pipeline_by_id(
    #      '9aa97f4e-387d-4d06-ac00-f4fc344514da',
    #  )

    # Taraval
    PipelineService.run_pipeline_by_id(
        '86b48bf6-6e55-4a2e-991a-9c15f1f77b80',
    )
示例#4
0
文件: main.py 项目: minglecm/ocelot
from ocelot.services import datastores
from ocelot.services.pipeline import PipelineService

if __name__ == '__main__':
    datastores.create_tables()
    datastores.initialize()

    # XKCD
    #  PipelineService.run_pipeline_by_id(
    #      '9aa97f4e-387d-4d06-ac00-f4fc344514da',
    #  )

    # Taraval
    PipelineService.run_pipeline_by_id(
        '86b48bf6-6e55-4a2e-991a-9c15f1f77b80', )