<filename>distask/datastores/base.py
from abc import ABC,abstractmethod
from typing import List

class DataStore(ABC):
    ''''''

    @abstractmethod
    def get_jobs(self, scheduler, now, limit=None) -> List:
        return None

    @abstractmethod
    def get_all_jobs(self, scheduler) -> List:
        return None

    @abstractmethod
    def modify_job(self, job, update):
        return None

    @abstractmethod
    def add_job(self, job):
        return None

    @abstractmethod
    def remove_job(self, job):
        return None

    @abstractmethod
    def record_job_exec(self, status, job, duration=0, runtimes=1, excetion=None):
        return None

    @abstractmethod
    def clear_all_jobs_info(self):
        return None
<filename>distask/datastores/base.py
from abc import ABC,abstractmethod
from typing import List

class DataStore(ABC):
    ''''''

    @abstractmethod
    def get_jobs(self, scheduler, now, limit=None) -> List:
        return None

    @abstractmethod
    def get_all_jobs(self, scheduler) -> List:
        return None

    @abstractmethod
    def modify_job(self, job, update):
        return None

    @abstractmethod
    def add_job(self, job):
        return None

    @abstractmethod
    def remove_job(self, job):
        return None

    @abstractmethod
    def record_job_exec(self, status, job, duration=0, runtimes=1, excetion=None):
        return None

    @abstractmethod
    def clear_all_jobs_info(self):
        return None