Source code for cyto.runners.base

from abc import ABC, abstractmethod
from typing import Any, Dict

[docs] class RunnerBase(ABC): """Base class for container runners.""" def __init__(self, execution_config: Dict[str, Any]) -> None: self.execution_config = execution_config
[docs] @abstractmethod def run(self, task: Any, data: Any) -> Any: """ Run a task in a container. Args: task: The task object to run. data: The input data for the task. Returns: The result of the task execution. """ pass