prefect.server.utilities.leasing
ResourceLease
LeaseStorage
create_lease
resource_ids
: The IDs of the resources that the lease is associated with.ttl
: How long the lease should initially be held for.metadata
: Additional metadata associated with the lease.read_lease
lease_id
: The ID of the lease to read.renew_lease
lease_id
: The ID of the lease to renew.ttl
: The new amount of time the lease should be held for.revoke_lease
lease_id
: The ID of the lease to release.read_expired_lease_ids
limit
: The maximum number of expired leases to read.