Partial Batch Retry #838
-
Hello everyone, the docs in the README state the following:
I would like to use batch processing, however I would also like to be able to only return messages inside the batch to queue that failed. Let's say I have a batch size of 5. If message 1 and 2 were successful but message 3 failed, 1 and 2 will also be send back to queue. Also 4 and 5 will be send back even though processing of them never started in the first place. So my question is: Is there an option to only do partial batch retries where only failed messages are send back to queue? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @stefan-fast, Could you please give more information on how in batch processing there are only partial failures or messages not processed at all? Partial batch retries could be implemented with new custom exception where user function would populate the exception with details of which messages failed and which succeeded, and then Parallel Consumer could mark messages according to those details - some as failed and some as succeeded. But it sounds very niche - hence i would like to understand why this behaviour is needed at all? |
Beta Was this translation helpful? Give feedback.
Hi @stefan-fast,
I think the main thinking behind handling of batch processing results is the expectation that processing is done on the whole batch - i.e. SQL statement or web service call etc that either succeeds or fails for the batch as a whole.
Hence the results being handled on the whole batch as well.
Could you please give more information on how in batch processing there are only partial failures or messages not processed at all?
Partial batch retries could be implemented with new custom exception where user function would populate the exception with details of which messages failed and which succeeded, and then Parallel Consumer could mark messages according to those details - so…