Task
Task()-> None
Base class for a fingerprintable, serializable operation.
Subclasses declare their parameters as fields and implement run. Every instance is frozen, so a task can be shared, cached and reused; changing one means making another with update.
Methods
| Name | Description |
|---|---|
| from_dict | Return the task a document describes. |
| new | Create new instance with some attributed updated. |
| run | Execute the task. Subclasses must implement this. |
| to_dict | Return a document which describes this task. |
| update | Return a new task with some parameters changed. |