Skill Detail

Run durable scheduled agent jobs in Node.js with Agenda

Use Agenda when a custom Node.js agent needs persistent scheduled jobs, retries, locking, and background workers backed by MongoDB, PostgreSQL, or Redis instead of fragile in-process timers.

Templates & WorkflowsCustom Agents
Templates & Workflows Custom Agents Security Reviewed
⭐ 9.7k GitHub stars ⬇ 167.2k/wk npm
INSTALL WITH ANY AGENT
npx skills add agentskillexchange/skills --skill run-durable-scheduled-agent-jobs-in-node-js-with-agenda Copy
Works best when you want a reusable capability, not another fragile one-off prompt.
At a glance
Tools required
Node.js, the agenda npm package, and a supported persistence backend such as MongoDB, PostgreSQL, or Redis.
Install & setup
Install Agenda with npm install agenda, then install one backend package such as @agendajs/mongo-backend, @agendajs/postgres-backend, or @agendajs/redis-backend. Define named jobs in the Node.js worker, connect the backend, call agenda.start(), and schedule one-off or recurring agent tasks with Agenda's job APIs.
Author
Agenda
Publisher
Open Source Collective
Last updated
Jun 21, 2026
Quick brief

Use Agenda when an agent or operator workflow needs durable background execution in a Node.js service: scheduled research refreshes, queued enrichment jobs, delayed follow-ups, retryable tool calls, or recurring maintenance tasks. Agenda gives the workflow named jobs, persistence, locking, priorities, repeats, and pluggable storage backends so the agent can resume work after process restarts instead of relying on ad hoc timers.

How it works

What this skill actually does

Invoke this when the task is to define and operate repeatable background jobs around an agent workflow, not when a user simply needs a calendar reminder or a generic cron entry. The scope boundary is narrow: Agenda is the job runner inside a custom Node.js automation service. It is not a full agent framework, SaaS scheduler, workflow builder, or general Node.js library listing.

Inputs and prerequisites: Node.js, the agenda npm package, and a supported persistence backend such as MongoDB, PostgreSQL, or Redis..

Setup notes:

Install Agenda with npm install agenda, then install one backend package such as @agendajs/mongo-backend, @agendajs/postgres-backend, or @agendajs/redis-backend. Define named jobs in the Node.js worker, connect the backend, call agenda.start(), and schedule one-off or recurring agent tasks with Agenda’s job APIs.

Source and verification boundary: use https://agenda.github.io/agenda/ as the canonical reference before running the workflow; keep commands, API calls, CLI usage, and generated outputs reviewable against that upstream source.

Framework fit: publish this as a Custom Agents workflow only when the operator can invoke the documented toolchain directly, rather than treating the upstream project as a generic product listing.