Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should it quit if the 'item' callback rejects? #1

Open
geoffdutton opened this issue Jun 27, 2017 · 0 comments
Open

Should it quit if the 'item' callback rejects? #1

geoffdutton opened this issue Jun 27, 2017 · 0 comments

Comments

@geoffdutton
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant