Storing data into a collection using multiple workers.

vmaneesh

Member
Hi,

I am currently working on a process where i have to write a data item into a collection and then upload it to a csv. For this process, i am firstly going through all the items in the queue and writing all the data into a collection and at the end i am converting the collection into a csv file. This works perfectly when i have one virtual worker running on it. If i have more than one virtual worker running the process, the workers are only writing the data that they receive from the item they are working on.

For ex: i have 10 cases numbered 1-10 in a queue and running it on 2 workers. if worker 1 handles 5 items - it will only write the data related to those 5 items into the collection. Same regarding worker 2. But what i want is - both workers working on the process and writing the data to the same collection. So that, no data will be missed when i convert it to a csv file in the end.

Let me know if you have any questions or require more information regarding this issue.

Thanks.
 
Top