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

Add reportErrorsFromProcessTask option #13

Open
EECOLOR opened this issue Oct 13, 2018 · 0 comments
Open

Add reportErrorsFromProcessTask option #13

EECOLOR opened this issue Oct 13, 2018 · 0 comments

Comments

@EECOLOR
Copy link
Member

EECOLOR commented Oct 13, 2018

Please vote on this issue if you would like this feature to be added.


This feature request came from #11

The following snippets would then be equivalent (the same):

new Queue({ options: { reportErrorsFromProcessTask: true }, ... })
...
async function processTask(task) {
   ...
}
new Queue({ options: { reportErrorsFromProcessTask: false }, ... })
...
async function processTask(task) {
   try { ... }
   catch (e) { reportError(e); throw e }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant