Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save shlomisas/90d4f9f63da848b4748d22bcf97735e2 to your computer and use it in GitHub Desktop.
Save shlomisas/90d4f9f63da848b4748d22bcf97735e2 to your computer and use it in GitHub Desktop.
sqs-consumer-start-bug
import { Consumer } from 'sqs-consumer';
const consumer = Consumer.create({
queueUrl: 'some wrong queue url'
});
consumer.on('error', err => {
console.error('Error in SQS consumer:', err);
});
consumer.on('started', () => {
console.debug('Scheduler SQS consumer started');
});
consumer.start();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment