chore: initialize monorepo with project scaffolding, configs, and CI setup
This commit is contained in:
17
apps/miner-node/src/aitbc_miner/runners/base.py
Normal file
17
apps/miner-node/src/aitbc_miner/runners/base.py
Normal file
@@ -0,0 +1,17 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from dataclasses import dataclass
|
||||
from pathlib import Path
|
||||
from typing import Any, Dict
|
||||
|
||||
|
||||
@dataclass
|
||||
class RunnerResult:
|
||||
ok: bool
|
||||
output: Dict[str, Any]
|
||||
artifacts: Dict[str, Path] | None = None
|
||||
|
||||
|
||||
class BaseRunner:
|
||||
async def run(self, job: Dict[str, Any], workspace: Path) -> RunnerResult:
|
||||
raise NotImplementedError
|
||||
Reference in New Issue
Block a user