Skip to content

Client library for adding tasks to the AdGeek Task Queue

Notifications You must be signed in to change notification settings

cocktail-insights/adgeek-queue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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: ['[email protected]'],
  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

Resources

Stars

Watchers

Forks

Packages

No packages published