cocktail-insights / adgeek-queue

Client library for adding tasks to the AdGeek Task Queue

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AdGeek Queue

Client library for adding tasks to the AdGeek Task Queue

Installation

npm install cocktail-insights/adgeek-queue

Usage/Example

const Queue = require('adgeek-queue');

const EmailQueue = Queue({
  host: '<task_queue_host>',
  auth: '<redis_auth>',
});

EmailQueue.addEmailTask('welcome_email', {
  to: ['foo@bar.baz'],
  subject: 'Welcome to CS 101!!!',
  data: {
    fizz: 'buzz', // extra data for templates
  },
});

Test

npm test

About

Client library for adding tasks to the AdGeek Task Queue


Languages

Language:JavaScript 100.0%