doubt in trigger execution

Hi everybody.i have a dought in trigger execution that
a trigger queue has 10 documets to be processed a service while processing 5 document is failed.
what will happens for the remaining the trigger comes out of the execution.if yes how do we reexeute the rest of the documents in the trigger queue. how can we reinvoke the trigger from developer

It depends on the failure. If a document is “fail for retry” then all the documents behind it in the queue will wait. If the service simply fails, then the rest of the documents will be processed.