from tilebox.workflows import Task, ExecutionContext class MyFirstTask(Task): def execute(self, context: ExecutionContext): print(f"Hello World!") @staticmethod def identifier() -> tuple[str, str]: return ("tilebox.workflows.MyTask", "v3.2") class MyFirstParameterizedTask(Task): name: str greet: bool data: dict[str, str] def execute(self, context: ExecutionContext): if self.greet: print(f"Hello {self.name}!")
class Task: def execute(context: ExecutionContext) -> None @staticmethod def identifier() -> tuple[str, str]
def Task.execute(context: ExecutionContext) -> None
@staticmethod def Task.identifier() -> tuple[str, str]
v0.0
class MyTask(Task): message: str value: int data: dict[str, int]
str
int
float
bool
lists
dicts
Was this page helpful?