Method: MysqlFramework::Scripts::LockManager#release_lock
- Defined in:
- lib/mysql_framework/scripts/lock_manager.rb
#release_lock(key:, lock:) ⇒ Object
This method is called to release a lock
44 45 46 47 48 49 50 |
# File 'lib/mysql_framework/scripts/lock_manager.rb', line 44 def release_lock(key:, lock:) return if lock.nil? MysqlFramework.logger.info { "[#{self.class}] - Releasing lock: #{key}." } with_client { |client| client.unlock(lock) } end |