@frubana/adonis-sqs

0.0.9 • Public • Published

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;

Dependents (0)

Package Sidebar

Install

npm i @frubana/adonis-sqs

Weekly Downloads

6

Version

0.0.9

License

none

Unpacked Size

9.1 kB

Total Files

11

Last publish

Collaborators

  • frubana1
  • emil_hm_frubana
  • cristocaceres
  • mleonardom
  • andresilvagomez
  • eslavadev