PoolMemberActiveLeaseDto
Namespace: Meshmakers.Octo.Communication.Contracts.DataTransferObjects
The lease a pool member is still running when it registers again after a reconnect
(AB#5826). Sent on IAdapterPoolHub.ResumePoolMemberAsync.
public record PoolMemberActiveLeaseDto : IEquatable<PoolMemberActiveLeaseDto>
Inheritance Object β PoolMemberActiveLeaseDto
Implements IEquatable<PoolMemberActiveLeaseDto>
Remarks:
π΄ Identifiers only β no secret travels back. The borrower's client secret, database password, invoker token, pipeline configuration and input stay on the member, exactly as LeaseResultDto rules for the release. The controller does not need them: it only has to know that the member is busy, with what, until when.
The controller does not take these values on trust. It adopts the lease only after the persisted execution in PoolMemberActiveLeaseDto.TenantId proves that the work was leased from this member's pool to this member id and is still running.
Propertiesβ
LeaseIdβ
The lease id, as handed out in LeaseDto.LeaseId.
public string LeaseId { get; set; }
Property Valueβ
TenantIdβ
The borrowing tenant (LeaseDto.TenantId).
public string TenantId { get; set; }
Property Valueβ
ExecutionIdβ
The borrower's execution the lease serves (LeaseDto.ExecutionId); empty for a hand-driven lease.
public string ExecutionId { get; set; }
Property Valueβ
AdapterRtIdβ
RtId of the borrower's leased adapter (LeaseDto.AdapterRtId).
public string AdapterRtId { get; set; }
Property Valueβ
AdapterCkTypeIdβ
CkTypeId of the borrower's leased adapter (LeaseDto.AdapterCkTypeId).
public string AdapterCkTypeId { get; set; }
Property Valueβ
GrantedAtUtcβ
When the lease was granted (UTC), as handed out in LeaseDto.GrantedAtUtc.
public DateTime GrantedAtUtc { get; set; }
Property Valueβ
ExpiresAtUtcβ
When the lease expires (UTC), as handed out in LeaseDto.ExpiresAtUtc. An adopted lease keeps it, so the TTL a controller restart interrupted is the TTL that applies.
public DateTime ExpiresAtUtc { get; set; }
Property Valueβ
Constructorsβ
PoolMemberActiveLeaseDto()β
public PoolMemberActiveLeaseDto()