execution-plane-client 0.1.6__tar.gz → 0.1.7__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.6 → execution_plane_client-0.1.7}/PKG-INFO +1 -1
- {execution_plane_client-0.1.6 → execution_plane_client-0.1.7}/_version.py +2 -2
- execution_plane_client-0.1.7/commands/work.py +43 -0
- execution_plane_client-0.1.6/commands/work.py +0 -39
- {execution_plane_client-0.1.6 → execution_plane_client-0.1.7}/.gitignore +0 -0
- {execution_plane_client-0.1.6 → execution_plane_client-0.1.7}/LICENSE +0 -0
- {execution_plane_client-0.1.6 → execution_plane_client-0.1.7}/README.md +0 -0
- {execution_plane_client-0.1.6 → execution_plane_client-0.1.7}/__init__.py +0 -0
- {execution_plane_client-0.1.6 → execution_plane_client-0.1.7}/catalog.py +0 -0
- {execution_plane_client-0.1.6 → execution_plane_client-0.1.7}/commands/__init__.py +0 -0
- {execution_plane_client-0.1.6 → execution_plane_client-0.1.7}/commands/base.py +0 -0
- {execution_plane_client-0.1.6 → execution_plane_client-0.1.7}/commands/clusters.py +0 -0
- {execution_plane_client-0.1.6 → execution_plane_client-0.1.7}/commands/control.py +0 -0
- {execution_plane_client-0.1.6 → execution_plane_client-0.1.7}/commands/credentials.py +0 -0
- {execution_plane_client-0.1.6 → execution_plane_client-0.1.7}/commands/targets.py +0 -0
- {execution_plane_client-0.1.6 → execution_plane_client-0.1.7}/errors.py +0 -0
- {execution_plane_client-0.1.6 → execution_plane_client-0.1.7}/handlers.py +0 -0
- {execution_plane_client-0.1.6 → execution_plane_client-0.1.7}/protocol.py +0 -0
- {execution_plane_client-0.1.6 → execution_plane_client-0.1.7}/py.typed +0 -0
- {execution_plane_client-0.1.6 → execution_plane_client-0.1.7}/pyproject.toml +0 -0
- {execution_plane_client-0.1.6 → execution_plane_client-0.1.7}/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.7'
|
|
22
|
+
__version_tuple__ = version_tuple = (0, 1, 7)
|
|
23
23
|
|
|
24
24
|
__commit_id__ = commit_id = None
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"""Scheduling commands for the SDK-owned container gRPC contract."""
|
|
2
|
+
|
|
3
|
+
from typing import Annotated, ClassVar, Literal
|
|
4
|
+
|
|
5
|
+
from pydantic import Field, StrictStr, field_validator
|
|
6
|
+
|
|
7
|
+
from execution_plane_client.commands.base import CommandPayload
|
|
8
|
+
from execution_plane_client.protocol import PositiveInt, WireModel, validate_json
|
|
9
|
+
|
|
10
|
+
StepIdentity = Annotated[StrictStr, Field(min_length=1, max_length=256, pattern=r"^[A-Za-z0-9._:-]+$")]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class WorkloadInvocation(WireModel):
|
|
14
|
+
"""Public invocation data; EP supplies the attempt ID and credential mounts.
|
|
15
|
+
|
|
16
|
+
Script environment variables remain ordinary step inputs. Credential-file
|
|
17
|
+
delivery is not implemented yet, so callers cannot supply secret values or
|
|
18
|
+
claim that arbitrary file paths have been mounted by EP.
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
workflow_run_id: StepIdentity
|
|
22
|
+
step_revision_id: StepIdentity
|
|
23
|
+
inputs: dict[str, object]
|
|
24
|
+
runtime_context: dict[str, object] = Field(default_factory=dict)
|
|
25
|
+
timeout_seconds: Annotated[PositiveInt, Field(le=86_400)]
|
|
26
|
+
|
|
27
|
+
@field_validator("inputs", "runtime_context", mode="before")
|
|
28
|
+
@classmethod
|
|
29
|
+
def check_json(cls, value: object) -> object:
|
|
30
|
+
"""Keep nested invocation data finite, portable, and bounded."""
|
|
31
|
+
return validate_json(value)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class WorkExecute(CommandPayload):
|
|
35
|
+
"""Schedule one workload implementing the SDK container service."""
|
|
36
|
+
|
|
37
|
+
command_type: ClassVar[str] = "work.execute"
|
|
38
|
+
|
|
39
|
+
image: Annotated[StrictStr, Field(min_length=1, max_length=2048)]
|
|
40
|
+
selectors: dict[StrictStr, StrictStr] = Field(default_factory=dict)
|
|
41
|
+
invocation: WorkloadInvocation = Field(repr=False)
|
|
42
|
+
output_config: dict[str, str] | None = None
|
|
43
|
+
workload_type: Literal["container"] = "container"
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"""Versioned work invocation values without node-provider imports."""
|
|
2
|
-
|
|
3
|
-
from typing import Annotated, ClassVar, Literal
|
|
4
|
-
|
|
5
|
-
from pydantic import Field, StrictStr, field_validator
|
|
6
|
-
|
|
7
|
-
from execution_plane_client.commands.base import CommandPayload
|
|
8
|
-
from execution_plane_client.protocol import PositiveInt, WireModel, validate_json
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class NodeInvocation(WireModel):
|
|
12
|
-
"""Version-one invocation consumed by the existing node protocol."""
|
|
13
|
-
|
|
14
|
-
version: Literal[1] = 1
|
|
15
|
-
operation: Literal["execute"] = "execute"
|
|
16
|
-
inputs: dict[str, object]
|
|
17
|
-
credentials: dict[str, object] = Field(repr=False)
|
|
18
|
-
workflow_context: dict[str, object]
|
|
19
|
-
settings: dict[str, object]
|
|
20
|
-
timeout_seconds: PositiveInt
|
|
21
|
-
max_output_bytes: PositiveInt
|
|
22
|
-
|
|
23
|
-
@field_validator("inputs", "credentials", "workflow_context", "settings", mode="before")
|
|
24
|
-
@classmethod
|
|
25
|
-
def check_json(cls, value: object) -> object:
|
|
26
|
-
"""Keep all nested invocation data portable and bounded."""
|
|
27
|
-
return validate_json(value)
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
class WorkExecute(CommandPayload):
|
|
31
|
-
"""Script command with stable caller correlation and provider-neutral input."""
|
|
32
|
-
|
|
33
|
-
command_type: ClassVar[str] = "work.execute"
|
|
34
|
-
|
|
35
|
-
image: Annotated[StrictStr, Field(min_length=1, max_length=2048)]
|
|
36
|
-
selectors: dict[StrictStr, StrictStr] = Field(default_factory=dict)
|
|
37
|
-
invocation: NodeInvocation = Field(repr=False)
|
|
38
|
-
output_config: dict[str, str] | None = None
|
|
39
|
-
workload_type: Literal["script"] = "script"
|
|
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
|