BaseTask
BaseTask
BaseTask(name: str, link_name: str, local_path: Path, prev_task_server: Path, thumbnail: BaseThumbnail, data_to_show, *args, **kwargs)
Represents a unit of work within a plugin, including paths and metadata.
Attributes:
-
name(str) –Task name (e.g., 'refine', 'model').
-
link_name(str) –Linked entity name.
-
local_path(Path) –Local path of the task.
-
prev_task_server(Path) –Server path of previous task.
-
thumbnail(BaseThumbnail) –Thumbnail metadata.
-
data_to_show(List[Any]) –Data rows to display.
Methods:
-
deserialize–Populate this object from serialized dictionary or JSON string.
-
serialize–Serialize the task object's public attributes to a dictionary.
deserialize
deserialize(data: Union[str, Dict[str, Any]]) -> None
Populate this object from serialized dictionary or JSON string.
Parameters:
-
(dataUnion[str, Dict[str, Any]]) –JSON string or dict.