Skip to content

Conversation

@ramimoshe
Copy link
Owner

No description provided.

@ramimoshe ramimoshe self-assigned this Nov 3, 2019
@ramimoshe ramimoshe requested a review from zigius November 3, 2019 22:17
README.md Outdated
``` js
{
"queue": { // object, required
"ackOnMessageError": "" // boolean, optional, (send ack when handle funcrion failed, default true)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

funcrion => function. Also, if its boolean dont set empty string in the esxmaple

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

this.emit('message', { type: jsonMessage.type, status: messageStatuses.proceed });
} catch (error) {
this.emit('error', error);
if (!this.options.ackOnMessageError) throw error;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think its not clear from the name of the variable that you are going to throw an error

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the error is for cancelling the handling and send the message to sqs again, so queue-router will handle this message again next time

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in this way i am "sending nack"

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

Successfully merging this pull request may close these issues.

3 participants