0.0.9 • Published 5 years ago

@frubana/adonis-sqs v0.0.9

Weekly downloads
42
License
-
Repository
-
Last release
5 years ago

SQS Adonis Provider

This is a WIP

Setup

Make sure to register the provider and make all of the following necessary changes inside the start/app.js file!

// Add the sqs provider
const providers = [
  // ...
  "@frubana/adonis-sqs/providers/Provider"
];

Config

Please update configuration before use. The configuration file is config/queues.js.

Define your Job

// app/Jobs/Test.js

const Logger = use("Logger");

class Test {
  async handler(data, message, done) {
    Logger.info("Queue started Test");

    done(true);
  }
}

module.exports = Test;
0.0.9

5 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago