lawos
lawos copied to clipboard
Should it quit if the 'item' callback rejects?
Given an item
callback like:
Q.item(
item => new Promise((resolve, reject) => {
someOtherService((error, result) => {
error ? reject(error) : resolve(result)
})
})
)
If someOtherService
results in an error, and therefore the Promise rejects, should that cause the queue to quit and not delete that particular SQS message?