Change the S3 db lock to not lock a row or hold a connection open. Instead, write a record that indicates the lock is held. Fail if the record already exists and indicates a hold. Partial solution for the problem of not releasing a lock, holds are only valid for an hour (or a configurable duration).
Change the S3 db lock to not lock a row or hold a connection open. Instead, write a record that indicates the lock is held. Fail if the record already exists and indicates a hold. Partial solution for the problem of not releasing a lock, holds are only valid for an hour (or a configurable duration).