lawos icon indicating copy to clipboard operation
lawos copied to clipboard

Should it quit if the 'item' callback rejects?

Open geoffdutton opened this issue 7 years ago • 0 comments

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?

geoffdutton avatar Jun 27 '17 02:06 geoffdutton