Skip to content

Instantly share code, notes, and snippets.

@drwpow
Last active June 28, 2018 01:23
Show Gist options
  • Save drwpow/5a72056b5e53f0f7660dd35476b3200e to your computer and use it in GitHub Desktop.
Save drwpow/5a72056b5e53f0f7660dd35476b3200e to your computer and use it in GitHub Desktop.
const IronWorker = require('iron_worker');
const worker = new IronWorker.Client({
token: process.env.IRON_TOKEN,
project_id: process.env.IRON_PROJECT_ID,
});
const payload = { first: 'Hello', second: 'World' };
const options = { priority: 1 };
worker.tasksCreate('HelloWorld', payload, options, function(error, body) {});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment