cayu.sessions.PersistedEventSideEffectClaim
Part of cayu.sessions.base. Read the Python API overview and install the required extra.
from cayu.sessions import PersistedEventSideEffectClaimBases: BaseModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
session_id |
str |
required |
event_id |
str |
required |
event_sequence |
StrictInt |
Field(ge=1, le=MAX_DURABLE_JSON_INTEGER) |
event |
Event |
required |
attempt |
StrictInt |
Field(ge=1, le=MAX_DURABLE_JSON_INTEGER) |
claim_id |
str |
Field(default_factory=lambda: str(uuid4())) |
lease_expires_at |
datetime |
required |
validate_clean_strings (method)
Section titled “validate_clean_strings (method)”PersistedEventSideEffectClaim.validate_clean_strings(value: str, info) -> strcopy_claim_event (method)
Section titled “copy_claim_event (method)”PersistedEventSideEffectClaim.copy_claim_event(value: Event) -> Eventnormalize_lease_expires_at (method)
Section titled “normalize_lease_expires_at (method)”PersistedEventSideEffectClaim.normalize_lease_expires_at(value: datetime) -> datetime