Methods
def execute(...) -> None or async def execute(...) -> None. The runner waits for an asynchronous method to complete.
v0.0.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
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) -> Awaitable[None] | None
@staticmethod
def identifier() -> tuple[str, str]
def Task.execute(context: ExecutionContext) -> Awaitable[None] | None
def execute(...) -> None or async def execute(...) -> None. The runner waits for an asynchronous method to complete.
@staticmethod
def Task.identifier() -> tuple[str, str]
v0.0.
class MyTask(Task):
message: str
value: int
data: dict[str, int]
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}!")
Was this page helpful?