def make_logger
      logger = Logger.new(STDOUT)
      logger.level = Logger::ERROR
      logger
    end
def make_logger
      logger = Logger.new(STDOUT)
      logger.level = Logger::ERROR
      logger
    end
Options for lock
 name       - The uuid of the lock
 timeout    - The time that waits to acquire the lock, default 20 seconds
 expiration - Lock expires in given seconds if not refreshed, default 10 seconds
 logger     - The logger..
 ttl        - The max time that a thread can acquire the lock, default 600 seconds. Lock raise +JOB_TIMEOUT+ error once the ttl is exceeded.