omnipy.shared.protocols.compute.mixins
Shared mixin protocols for compute contracts.
| CLASS | DESCRIPTION |
|---|---|
IsNestedContext |
Protocol for objects that manage nested execution contexts. |
IsUniquelyNamedJob |
Protocol for jobs with stable and regenerated names. |
IsNestedContext
Bases: Protocol
flowchart BT
omnipy.shared.protocols.compute.mixins.IsNestedContext[IsNestedContext]
click omnipy.shared.protocols.compute.mixins.IsNestedContext href "" "omnipy.shared.protocols.compute.mixins.IsNestedContext"
Protocol for objects that manage nested execution contexts.
-
Reference
Code reference
omnipy
shared
protocols
compute
job_creatorIsJobCreator
Source code in src/omnipy/shared/protocols/compute/mixins.py
IsUniquelyNamedJob
Bases: Protocol
flowchart BT
omnipy.shared.protocols.compute.mixins.IsUniquelyNamedJob[IsUniquelyNamedJob]
click omnipy.shared.protocols.compute.mixins.IsUniquelyNamedJob href "" "omnipy.shared.protocols.compute.mixins.IsUniquelyNamedJob"
Protocol for jobs with stable and regenerated names.
| METHOD | DESCRIPTION |
|---|---|
__init__ |
|
regenerate_unique_name |
Regenerate the unique job name from the current base name. |
| ATTRIBUTE | DESCRIPTION |
|---|---|
name |
Return the configured base name for the job.
TYPE:
|
unique_name |
Return the generated unique name used to identify the job instance.
TYPE:
|
unique_run_slug |
Return the run-specific slug generated for this job instance.
TYPE:
|
Source code in src/omnipy/shared/protocols/compute/mixins.py
name
property
unique_name
property
Return the generated unique name used to identify the job instance.
| RETURNS | DESCRIPTION |
|---|---|
str
|
Unique job identifier suitable for registry lookups and logging.
TYPE:
|
unique_run_slug
property
Return the run-specific slug generated for this job instance.
| RETURNS | DESCRIPTION |
|---|---|
str
|
Short slug used in per-run names and identifiers.
TYPE:
|
__init__
regenerate_unique_name
Regenerate the unique job name from the current base name.
Updates the stored unique identifier so later registry entries and log messages use a fresh value.