nodejsagenda
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "nodejsagenda" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-818a6acd4316ff4956ee8b34a954f543eeaa2e08274f9334975eed6475a6091c. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/run-durable-scheduled-agent-jobs-in-node-js-with-agenda before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Use Agenda when you need persistent scheduled jobs, retry mechanisms, locking, and background workers backed by MongoDB, PostgreSQL, or Redis instead of fragile in-process timers.
Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Software, accounts and paid services
- Node.js, the agenda npm package, and a supported persistence backend such as MongoDB, PostgreSQL, or Redis.
- Testing
- Not tested
Browse files
Frontmatter
name: "在 Node.js 中使用 Agenda 运行持久化的计划代理作业"
slug: "run-durable-scheduled-agent-jobs-in-node-js-with-agenda"
version: "1.0.0"
displayName: "使用 Agenda 在 Node.js 中运行持久化的计划代理作业"
summary: "当需要持久化计划任务、重试机制、锁定功能以及由MongoDB、PostgreSQL或Redis支持的后台工作进程时,请使用Agenda,而不是脆弱的进程内定时器。"
license: "MIT"
description: "当需要持久化计划任务、重试机制、锁定功能以及由MongoDB、PostgreSQL或Redis支持的后台工作进程时,请使用Agenda,而不是脆弱的进程内定时器。"
github_stars: 9677
verification: "security_reviewed"
source: "https://github.com/1991513ccie-png/skills"
author: "1991513ccie-png"
publisher_type: "individual"
category: "Templates & Workflows"
framework: "Custom Agents"
tool_ecosystem:
github_repo: "1991513ccie-png/skills"
github_stars: 9677
npm_package: "agenda"
npm_weekly_downloads: 167228在 Node.js 中使用 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.
Prerequisites
Node.js, the agenda npm package, and a supported persistence backend such as MongoDB, PostgreSQL, or Redis.
Installation
Use the upstream install or setup path that matches your environment:
- npm install agenda
- npm install @agendajs/mongo-backend
- npm install @agendajs/postgres-backend
- npm install @agendajs/redis-backend
Requirements and caveats from upstream:
- A light-weight job scheduling library for Node.js
- ESM-only - Modern ES modules (Node.js 18+)
- If your MongoDB deployment is a replica set (even a single-node replica set works), you can use MongoChangeStreamNotificationChannel for native real-time notifications without any external dependencies:
Basic usage or getting-started notes:
-
For MongoDB: Install the official MongoDB backend:
-
You will need a working MongoDB database (v4+).
-
For PostgreSQL: Install the official PostgreSQL backend:
-
Extracted from upstream docs: https://raw.githubusercontent.com/agenda/agenda/HEAD/README.md
Documentation
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供 Node.js 中实现持久化计划任务的完整解决方案
- 支持 MongoDB、PostgreSQL、Redis 多种后端,适用性广
Highlights
- 触发描述精准,明确区分了 Agenda 与进程内定时器的使用场景
Areas to improve
-
缺少端到端代码示例 Reported severity: Minor
文档未提供完整的代码示例来展示如何定义任务、调度任务和处理任务执行
Recommendation: 建议添加一个完整的端到端示例,包括任务定义、调度逻辑和错误处理
Highlights
- 文档结构清晰,frontmatter 完整,包含必要的先决条件和安装说明
Areas to improve
-
缺少异常处理说明 Reported severity: Minor
未覆盖数据库连接失败、任务执行错误等常见异常场景的处理方案
Recommendation: 建议补充异常处理的最佳实践,特别是数据库连接和任务重试机制
Highlights
- 工具来源明确,参数说明清晰,支持多种数据库后端
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 34, 35, 36, 37
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- agenda.github.io
- github.com
- raw.githubusercontent.com
- www.mongodb.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Node.js, the agenda npm package, and a supported persistence backend such as MongoDB, PostgreSQL, or Redis.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.