Handle parallel external tasks via REST API

Hi, I was trying to understand how to handle parallel external tasks via REST API.

In particular my use case is to have a external service tasks that need to perform the same operation for list of items (namely download a bunch of files and upload them to a target).

I could handle the entire “loop” inside the external task and remove the parallel marker but if something goes wrong while downloading the files and I want to retry only the failing downloads I should keep track of them inside the external process.

With a parallel service tasks I could just rely on the engine to hold that piece of state.

Unfortunately I didn’t find anything inside the REST API doc about handling parallel external tasks.

Did I miss some docs?

Thanks in advance.

This can be solved by using a multi-instance task marker
https://docs.camunda.org/manual/latest/reference/bpmn20/tasks/task-markers/#multiple-instance

I have the same question, now i use parallel loop external task for 5 instance with the save topic, my question is how I shoud subscribe the topic in 5 external application replication .