Find_in_batches/find_each

automate

#1

Hello guys. I have problem with find_in_batches called from automate. Is it supported method or is it made public by mistake? (publicity comes from this piece of code https://github.com/ManageIQ/manageiq-automation_engine/blob/master/lib/miq_automation_engine/engine/miq_ae_method_service/miq_ae_service_model_base.rb#L33).
I see this in console:
$evm = MiqAeMethodService::MiqAeService.new(MiqAeEngine::MiqAeWorkspaceRuntime.new) $evm.vmdb(:vm).find_in_batches(batch_size: 100).map{ |group| group.first.class.name } => Array of Vms
But when I run the same code from automate, I see, that in group variable is object of DrbUnknown. In group.buf there is only string.
I get same results, when i use find_each instead of find_in_batches.
What is recommended approach to this? Thank you in advance.