【发布时间】:2019-04-16 16:16:40
【问题描述】:
我在 Mule 4 中有一个流程,它从 CSV 文件中读取数据并使用 Batch 将其插入 Salesforce:
所有 Salesforce 结果都插入到非持久性 VM 队列(默认为瞬态)。
为每个记录块插入所有消息,并在批处理结束时毫无问题地使用。
但是,当我完成后,10 秒后出现以下错误:
Message : Tried to consume messages from VM queue 'productQueue' but it was empty after timeout of 10 SECONDS.
Error type : VM:EMPTY_QUEUE
Element : testing-threadingSub_Flow/processors/0/processors/0 @ testing-threading:testing-threading.xml:95 (Consume)
Element XML : <vm:consume doc:name="Consume" doc:id="6b7b2df6-c986-425c-a6f0-29613a876d37" config-ref="VM_Config" queueName="demoQueue" timeout="10"></vm:consume>
如果没有更多消息要处理,为什么队列的消费者会运行?
我希望这个组件只在轮到他时才读取消息。也许我使用了错误类型的虚拟机?
【问题讨论】:
标签: batch-file queue timeout mule transient