- Overview
- TaskRegistration
TaskRegistration
Part of Tasks in the Python API reference.
Related guidance: concepts/tasks, how-to/receive-local-tasks, how-to/dispatch-local-tasks, quickstarts/effector-handler.
Runnable examples: receive_task.py, dispatch_task.py, receive_mesh_task.py, dispatch_mesh_task.py.
from picogrid_ecn_client import TaskRegistrationDescribe one local task-handler registration.
TaskRegistration( *, registration_id: UUID, entity_id: UUID, command: str, request_schema: dict[str, JsonValue], result_schema: dict[str, JsonValue] | None = None, registered_at: datetime,)Fields
Section titled “Fields”| Name | Type | Required | Default | Constraints | Description |
|---|---|---|---|---|---|
| registration_id | UUID | yes | — | — | Client-generated UUID identifying the local registration. |
| entity_id | UUID | yes | — | — | UUID of the entity that handles the command. |
| command | str | yes | — | min_length=1, max_length=128 | Registered command name, from 1 through 128 characters. |
| request_schema | dict[str, JsonValue] | yes | — | — | JSON Schema object for the registered request model. |
| result_schema | dict[str, JsonValue] | None | no | None | — | Optional JSON Schema object for the registered result model. |
| registered_at | datetime | yes | — | — | Timezone-aware UTC time when the handler was registered locally. |
Version 0.2.0 · branch main
