Home | History | Annotate | Download | only in lucifer

Lines Matching defs:Lease

8 obtain a job lease.  Ongoing ownership of the lease is established using
9 an exclusive fcntl lock on the lease file.
11 If a lease file is older than a few seconds and is not locked, then its
34 """Return a context manager owning a lease file.
36 The process that obtains the lease will maintain an exclusive,
48 """Yield Lease instances from jobdir.
50 @param jobdir: job lease file directory
55 yield Lease(entry)
58 class Lease(object):
59 "Represents a job lease."
61 # Seconds after a lease file's mtime where its owning process is not
78 """Return True if the lease is expired.
80 A lease is considered expired if there is no fcntl lock on it
82 has passed. The lease is not considered expired if the owning
83 process removed the lock file normally, as an expired lease
99 """Remove the lease file.
119 lease.
143 """Return the path of the abort socket corresponding to the lease."""
148 """Return True if the DirEntry is for a lease."""