You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
swarms/swarms/structs/task.py

44 lines
591 B

from abc import ABC
#from shapeless import shapeless
#@shapeless
class BaseTask(ABC):
def __init__(
self,
id,
):
self.id = id
def add(self):
pass
def schedule(self, time):
pass
def parents(self):
pass
def children(self):
pass
def preprocess(self):
pass
def add_parent(self):
pass
def is_pending(self):
pass
def is_finished(self):
pass
def is_executing(self):
pass
def run(self):
pass
def reset(self):
pass