def handle_request(self) -> RemoteRunOperationResult: base = RunOperationTask.run(self) result = RemoteRunOperationResult(results=base.results, generated_at=base.generated_at, logs=[], success=base.success, elapsed_time=base.elapsed_time) return result
def _runtime_initialize(self): return RunOperationTask._runtime_initialize(self)
def _get_kwargs(self): if isinstance(self.args.args, dict): return self.args.args else: return RunOperationTask._get_kwargs(self)
def handle_request(self) -> RemoteRunOperationResult: success, _ = RunOperationTask.run(self) result = RemoteRunOperationResult(logs=[], success=success) return result
def test_run_operation_task_with_bad_path(self): self.args.project_dir = 'bad_path' with self.assertRaises(dbt.exceptions.RuntimeException): new_task = RunOperationTask.from_args(self.args)
def test_run_operation_task(self): self.assertEqual(os.getcwd(), INITIAL_ROOT) self.assertNotEqual(INITIAL_ROOT, self.project_dir) new_task = RunOperationTask.from_args(self.args) self.assertEqual(os.getcwd(), self.project_dir)
def handle_request(self) -> RemoteRunOperationResult: base = RunOperationTask.run(self) result = RemoteRunOperationResult.from_local_result(base=base, logs=[]) return result