Skip to content

Scheduler

dotflow.abc.scheduler.Scheduler

Bases: ABC

Scheduler

Source code in dotflow/abc/scheduler.py
 7
 8
 9
10
11
12
13
14
15
16
class Scheduler(ABC):
    """Scheduler"""

    @abstractmethod
    def start(self, workflow: Callable, **kwargs) -> None:
        """Start the scheduler loop with the given workflow execution."""

    @abstractmethod
    def stop(self) -> None:
        """Stop the scheduler loop gracefully."""

start(workflow, **kwargs) abstractmethod

Start the scheduler loop with the given workflow execution.

Source code in dotflow/abc/scheduler.py
10
11
12
@abstractmethod
def start(self, workflow: Callable, **kwargs) -> None:
    """Start the scheduler loop with the given workflow execution."""

stop() abstractmethod

Stop the scheduler loop gracefully.

Source code in dotflow/abc/scheduler.py
14
15
16
@abstractmethod
def stop(self) -> None:
    """Stop the scheduler loop gracefully."""