Lease
org.llm4s.agent.service.Lease
@Experimental
final case class Lease(entryId: EntryId, token: LeaseToken, holder: String, expiresAt: Instant, stop: Option[StopRequest])
A lease on an open entry, as RunQueue.take grants it: the worker holding it may record attempts at the entry, renew the lease and close the entry, for as long as no other lease replaced it - expiry, by the store's clock, only lets another worker take the entry over. token fences every call made under it. stop is the stop asked of the entry when the store granted or last renewed the lease (QueueEntry.stopRequest, W3): a worker learns of a cancel or an interrupt from its renewals.
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article