locked_until

Lock.locked_until

Locks have an expiration time, to help avoid the issue of stuck locks, either due to forgetting to add cleanup code, or simply due to the app/server crashing before it can release the lock.

After a lock has expired, it’s assumed that the lock is stale and needs to be removed, and the affected resources are safe to use.