New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@tiledesk/tiledesk-multi-worker

Package Overview
Dependencies
Maintainers
6
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tiledesk/tiledesk-multi-worker

Jobs-Worker-Queued is a job runner for Node.js. It allows you to define and schedule jobs (arbitrary functions) for execution in a Nodejs worker node using the Rabbit MQ server.

latest
npmnpm
Version
0.3.5
Version published
Weekly downloads
434
85.47%
Maintainers
6
Weekly downloads
 
Created
Source

Jobs-Worker-Queued is a job runner for Node.js. It allows you to define and schedule jobs (arbitrary functions) for execution in a Nodejs worker node using the Rabbit MQ server.

Schema

image

Install

Run the follow command:

npm install --save jobs-worker-queued

Usage

Schedule a job

var JobManager = require("jobs-worker-queued");

var jobManager = new JobManager("amqp://YOUR_RABBIT_URI");


jobManager.publish(
    {name: "job1", address: {city: "NY"}}
);

Run the jobs on the Worker

var JobManager = require("jobs-worker-queued");

var jobManager = new JobManager("amqp://YOUR_RABBIT_URI");


jobManager.run(function(data) {
    console.log("run job here with payload", data)
});

Instantiate different jobs for different tasks

To properly exploit multi-worker, you need to instantiate JobManager using different queueName and topic for each different task. 
The exchange can be unique.

FAQs

Package last updated on 24 Nov 2025

Related posts