execution-plane-client 0.1.13__tar.gz → 0.1.15__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {execution_plane_client-0.1.13 → execution_plane_client-0.1.15}/PKG-INFO +1 -1
- {execution_plane_client-0.1.13 → execution_plane_client-0.1.15}/_version.py +2 -2
- {execution_plane_client-0.1.13 → execution_plane_client-0.1.15}/commands/control.py +13 -2
- {execution_plane_client-0.1.13 → execution_plane_client-0.1.15}/.gitignore +0 -0
- {execution_plane_client-0.1.13 → execution_plane_client-0.1.15}/LICENSE +0 -0
- {execution_plane_client-0.1.13 → execution_plane_client-0.1.15}/README.md +0 -0
- {execution_plane_client-0.1.13 → execution_plane_client-0.1.15}/__init__.py +0 -0
- {execution_plane_client-0.1.13 → execution_plane_client-0.1.15}/catalog.py +0 -0
- {execution_plane_client-0.1.13 → execution_plane_client-0.1.15}/commands/__init__.py +0 -0
- {execution_plane_client-0.1.13 → execution_plane_client-0.1.15}/commands/base.py +0 -0
- {execution_plane_client-0.1.13 → execution_plane_client-0.1.15}/commands/clusters.py +0 -0
- {execution_plane_client-0.1.13 → execution_plane_client-0.1.15}/commands/credentials.py +0 -0
- {execution_plane_client-0.1.13 → execution_plane_client-0.1.15}/commands/results.py +0 -0
- {execution_plane_client-0.1.13 → execution_plane_client-0.1.15}/commands/targets.py +0 -0
- {execution_plane_client-0.1.13 → execution_plane_client-0.1.15}/commands/work.py +0 -0
- {execution_plane_client-0.1.13 → execution_plane_client-0.1.15}/errors.py +0 -0
- {execution_plane_client-0.1.13 → execution_plane_client-0.1.15}/handlers.py +0 -0
- {execution_plane_client-0.1.13 → execution_plane_client-0.1.15}/models/__init__.py +0 -0
- {execution_plane_client-0.1.13 → execution_plane_client-0.1.15}/models/cluster.py +0 -0
- {execution_plane_client-0.1.13 → execution_plane_client-0.1.15}/models/execution_target.py +0 -0
- {execution_plane_client-0.1.13 → execution_plane_client-0.1.15}/models/shared.py +0 -0
- {execution_plane_client-0.1.13 → execution_plane_client-0.1.15}/models/work_item.py +0 -0
- {execution_plane_client-0.1.13 → execution_plane_client-0.1.15}/protocol.py +0 -0
- {execution_plane_client-0.1.13 → execution_plane_client-0.1.15}/py.typed +0 -0
- {execution_plane_client-0.1.13 → execution_plane_client-0.1.15}/pyproject.toml +0 -0
- {execution_plane_client-0.1.13 → execution_plane_client-0.1.15}/registry.py +0 -0
|
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
|
|
|
18
18
|
commit_id: str | None
|
|
19
19
|
__commit_id__: str | None
|
|
20
20
|
|
|
21
|
-
__version__ = version = '0.1.
|
|
22
|
-
__version_tuple__ = version_tuple = (0, 1,
|
|
21
|
+
__version__ = version = '0.1.15'
|
|
22
|
+
__version_tuple__ = version_tuple = (0, 1, 15)
|
|
23
23
|
|
|
24
24
|
__commit_id__ = commit_id = None
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
"""Cancellation requests and work completion commands."""
|
|
2
2
|
|
|
3
|
-
from
|
|
3
|
+
from enum import StrEnum
|
|
4
|
+
from typing import ClassVar
|
|
4
5
|
from uuid import UUID
|
|
5
6
|
|
|
6
7
|
from pydantic import Field, field_validator
|
|
7
8
|
|
|
8
9
|
from execution_plane_client.commands.base import CommandPayload
|
|
10
|
+
from execution_plane_client.models.work_item import WorkItemStatus
|
|
9
11
|
from execution_plane_client.protocol import ResourceReference, validate_json
|
|
10
12
|
|
|
11
13
|
|
|
@@ -17,13 +19,22 @@ class CancelCommand(CommandPayload):
|
|
|
17
19
|
target_command_id: UUID
|
|
18
20
|
|
|
19
21
|
|
|
22
|
+
class CompletionStatus(StrEnum):
|
|
23
|
+
"""Work-item states that can be reported by a completion command."""
|
|
24
|
+
|
|
25
|
+
COMPLETED = WorkItemStatus.COMPLETED.value
|
|
26
|
+
FAILED = WorkItemStatus.FAILED.value
|
|
27
|
+
CANCELLED = WorkItemStatus.CANCELLED.value
|
|
28
|
+
RECONCILIATION_REQUIRED = WorkItemStatus.RECONCILIATION_REQUIRED.value
|
|
29
|
+
|
|
30
|
+
|
|
20
31
|
class Completion(CommandPayload):
|
|
21
32
|
"""Terminal or uncertain work outcome delivered to the initiating client."""
|
|
22
33
|
|
|
23
34
|
command_type: ClassVar[str] = "work.execute.completed"
|
|
24
35
|
requires_parent: ClassVar[bool] = True
|
|
25
36
|
|
|
26
|
-
status:
|
|
37
|
+
status: CompletionStatus
|
|
27
38
|
result: dict[str, object] = Field(default_factory=dict, repr=False)
|
|
28
39
|
resource: ResourceReference | None = None
|
|
29
40
|
error_code: str | None = None
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|