kue now emits event when a resource is empty, so can detect when queue for type complete