long-task-queue-reader

0.7.2 • Public • Published

long-task-queue-reader

NPM version

Long task Queue reader

queueConfig = {
  accountName: "ACCOUNT_NAME"
  accountKey: "ACCOUNT_KEY"
  queueName: "QUEUE_NAME"
  waitingTime: 10  # time to sleep when queue is empty (sec)
  visibilityTimeout: #time to
}

loggerConfig = {
  accountName: "ACCOUNT_NAME"
  accountKey: "ACCOUNT_KEY"
  container: "CONTAINER_NAME"
  name: "LOG_NAME"
  level: "LOG_LEVEL"
}

new LongTaskQueueBuilder()
  .withLogger loggerConfig
  .withQueue queueConfig
  .withRunner (message) -> new SynchronizationRunner(message).run()
  .withMaxRetries(10)
  .build()
  .then (queueReader) -> queueReader.start()

Readme

Keywords

none

Package Sidebar

Install

npm i long-task-queue-reader

Weekly Downloads

231

Version

0.7.2

License

MIT

Unpacked Size

86.9 kB

Total Files

20

Last publish

Collaborators

  • gastonprieto18
  • juanmjacobs
  • dperezferrando
  • development-producteca