Lease

org.llm4s.agent.service.Lease
@Experimental
final case class Lease(entryId: EntryId, token: LeaseToken, holder: String, expiresAt: Instant)

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.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product