with_advisory_lock
with_advisory_lock copied to clipboard
Locking and unlocking separately (without a block)
I've had a good rummage through the code, and am pretty sure things aren't wired up this way, but I wondered if it's possible to kick off a lock with one method call, then release the lock with another? This would be useful say in a before_save
and after_save_commit
callback arrangement.