Source code for pyobs.interfaces.IRunnable

from abc import ABCMeta, abstractmethod
from typing import Any

from .IAbortable import IAbortable


class IRunnable(IAbortable, metaclass=ABCMeta):
    """The module has some action that can be started remotely."""

    __module__ = "pyobs.interfaces"

[docs] @abstractmethod async def run(self, **kwargs: Any) -> None: """Perform module task Raises: DeviceBusyError: If this task is already running. ScriptError: ScriptRunner-based implementations wrap whatever the underlying script raises that isn't already a domain exception. """ ...
__all__ = ["IRunnable"]