Throttle mechanism for distributed work with Ruby