We are using a delivery function triggered as a Background Delivery process. The delivery function uses TxnCheckpointSvc in a similar manner to a Delivery Process.
How should we handle errors in the delivery?
If an error occurs do we need to set the checkpointSvc.error AND return a DeliveryFuncResultBuilder with status error?
return new DeliveryFuncResultBuilder()
Or do we only need to set the checkpointSvc, OR the DeliveryFuncResultBuilder.
We are getting errors for some parts of the delivery function, but the behaviour is inconsistent, so we are having trouble debugging the function.
On the first run of the function checkpoints are not recorded, and no logs are recorded. When we retry the delivery all checkpoints run again (duplicating actions), and logs are recorded.
However, the missing logs mean we cannot determine the cause of the error.
Any guidance would be appreciated.