npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

n8n-nodes-bullmq

v0.5.9

Published

N8n nodes for BullMQ

Downloads

119

Readme

Banner image

n8n-nodes-bullmq

This package provides nodes to interact with BullMQ in n8n.

BullMQ

BullMQ is a Node.js queue library that is built on top of Redis. It is a rewrite of the original Bull Library, which is no longer maintained. BullMQ is a simple, fast, and reliable queue library suitable for a wide range of use cases.

While working with N8N I found that we need some way to to queue the jobs and work on them asynchronously. Since Redis and BullMQ are the most lightweight and reliable solutions for this, I decided to create a set of nodes to work with BullMQ.

Installation

There are two ways to install community nodes:

Features

Trying to cover all functionalities that BullMQ provides

  • [x] Queueing Jobs: Queue jobs to be processed asynchronously without blocking the main thread.

  • [x] Workflow Monitoring: Monitor the progress of jobs in the workflow using BullMQ and tools like bullmq-board.

  • [x] Rate Limiting: Rate-limit the number of jobs processed simultaneously to avoid overloading the system.

  • [x] Job Retries: Automatically retry jobs that fail, until they succeed.

  • [x] Flow Control: Control the flow of jobs in a workflow, ensuring specific job processing order, or pausing/resuming jobs.

  • [x] Job Prioritization: Set priority levels for jobs to ensure critical tasks are processed first.

  • [x] Concurrency Management: Control the number of concurrent jobs per worker to optimize resource utilization.

  • [x] Delayed Jobs: Schedule jobs to run after a certain delay, enabling future task execution like reminders.

  • [x] Job Throttling & Debouncing: Prevent overloads and reduce redundant processing by throttling or debouncing jobs.

  • [x] Event-Driven Execution: Trigger actions based on job events such as completion, failure, or progress updates.

  • [x] Scalable Processing: Scale jobs across multiple servers for high-throughput and fault-tolerant workflows.

  • [x] Job Lifecycle Hooks: Use before/after job processing hooks for logging, metrics, or job modification.

  • [x] Atomic and Reliable Processing: Ensure jobs are processed exactly once through Redis transactions for atomic, reliable workflows.

Nodes

BullMQ Trigger

image

Starts a workflow when a new job is added to the specified queue.

there are two modes for the trigger:

  • respond immediately: the trigger will respond immediately with the job data, and mark the job as completed.
  • wait for completion: the trigger will wait for the job to be completed before responding with the job data.

Notes: In order to wait for the job to be completed, we must use the BullMQ Respond node to mark the job as completed.

BullMQ

image

BullMQ node to add a job to the specified queue, wih the ability to pass data to the job and options.

BullMQ Respond

BullMQ node to mark a job as completed, failed, or delayed.

Notes: The respond node requires the jobId and a lockToken to mark the job as completed, failed, or delayed. you could get those values from the BullMQ Trigger node.

BullMQ Wait (WIP)

Similar to the Wait node but wait for Queue events instead of webhook

Roadmap

  • [ ] Flow managerment
  • [ ] Better error handle
  • [ ] Bugs fixes

Contribution

I would love to see more features and nodes added to this package. If you have any ideas or suggestions, feel free to open an issue or a pull request.

License

LICENSE