def METHOD_NAME(self, run_hash: str, force: bool) -> bool:
    success = True
    lock_path = self.locks_path / self.softlock_fname(run_hash)
    if force:
        # Force-release run lock
        if lock_path.exists():
            lock_path.unlink()
    else:
        lock_info = self.get_container_lock_info(run_hash)
        if lock_info.locked:
            if self.is_stalled_lock(lock_path):
                assert lock_info.version == LockingVersion.NEW
                logger.info(f'Detected stalled lock for Run \'{run_hash}\'. Removing lock.')
                lock_path.unlink()
            else:
                success = False
    return success