コード例 #1
0
ファイル: listener.py プロジェクト: genialis/resolwe
 def _load_expression_engines(self) -> Dict[str, BaseEngine]:
     """Load expression engines."""
     expression_engines = getattr(
         settings,
         "FLOW_EXPRESSION_ENGINES",
         ["resolwe.flow.expression_engines.jinja"],
     )
     return load_engines(self, "ExpressionEngine", "expression_engines",
                         expression_engines)
コード例 #2
0
 def load_execution_engines(self, engines):
     """Load execution engines."""
     return load_engines(self, "ExecutionEngine", "execution_engines",
                         engines)
コード例 #3
0
 def load_execution_engines(self, engines):
     """Load execution engines."""
     return load_engines(self, 'ExecutionEngine', 'execution_engines',
                         engines)
コード例 #4
0
ファイル: listener.py プロジェクト: genialis/resolwe
 def _load_execution_engines(self) -> Dict[str, BaseEngine]:
     """Load execution engines."""
     execution_engines = getattr(settings, "FLOW_EXECUTION_ENGINES",
                                 ["resolwe.flow.execution_engines.bash"])
     return load_engines(self, "ExecutionEngine", "execution_engines",
                         execution_engines)
コード例 #5
0
ファイル: dispatcher.py プロジェクト: genialis/resolwe
 def load_execution_engines(self, engines):
     """Load execution engines."""
     return load_engines(self, 'ExecutionEngine', 'execution_engines', engines)
コード例 #6
0
 def load_executor(self, executor_name):
     """Load process executor."""
     engines = load_engines(self, 'FlowExecutor', 'executors',
                            [executor_name], 'EXECUTOR', 'executor')
     # List conversion needed for Python 3, where values() returns a view.
     return list(engines.values())[0]
コード例 #7
0
ファイル: base.py プロジェクト: tjanez/resolwe
 def load_executor(self, executor_name):
     """Load process executor."""
     engines = load_engines(self, 'FlowExecutor', 'executors', [executor_name], 'EXECUTOR', 'executor')
     # List conversion needed for Python 3, where values() returns a view.
     return list(engines.values())[0]
コード例 #8
0
 def load_execution_engines(self, engines: List[Union[dict, str]]):
     """Load execution engines."""
     return load_engines(self, "ExecutionEngine", "execution_engines", engines)
コード例 #9
0
 def load_expression_engines(self, engines: List[Union[Dict, str]]):
     """Load expression engines."""
     return load_engines(self, "ExpressionEngine", "expression_engines",
                         engines)