nocobase-app-plugin-scheduler
Qué hace
Esta skill guía a los desarrolladores en la creación de tareas programadas en una aplicación NocoBase 3, con su estado visible para los administradores de negocio. Es para equipos que necesitan vigilar trabajos recurrentes.
Cuándo usarla
- ✓Cuando los administradores de negocio necesitan ver y seguir las tareas recurrentes de la aplicación.
- ✓Cuando quieres definir una programación en código con un estado visible en la interfaz.
- ✓Cuando una tarea en segundo plano no necesita visibilidad en la interfaz y debes elegir otro mecanismo de trabajos.
Link de la skill
https://github.com/nocobase/nocobase/blob/v3-develop/packages/plugins/app-plugin-scheduler/skills/nocobase-app-plugin-scheduler/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“¿Puedes añadir una tarea nocturna que archive los pedidos antiguos y dejar que los administradores vean sus ejecuciones y la puedan desactivar?”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La IA define la programación y su lógica de ejecución en el código, registra el destino e informa del estado final. Scheduler guarda el historial de disparos para que los administradores puedan seguir cada ejecución.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Develop Scheduled Tasks in an Application
Use the installed version's public exports, without importing plugin internals. The application owns business logic, schedule declarations, Providers, permissions, and deployment timing. Scheduler owns scheduling projections, trigger history, and execution state. The plugin's skills/ directory is the source of truth; do not edit the synchronized application copy under .agents/skills/.
Decide Whether to Use Scheduler
The primary reason to define tasks through Scheduler is UI observability for business administrators. Developers define schedules and execution logic in code. Business administrators use the task list and detail pages the application builds on the Scheduler API to view schedules, track individual executions, and enable or disable tasks when authorized.
Tasks that do not need to be viewed and tracked through the UI must not be managed by the Scheduler plugin. Give recurring ones a ScheduleExecutor of their own from the application's jobs service (jobExecutorServiceToken in @nocobase/app-server/jobs), and one-off background work a JobExecutor; the application development Skill describes both. For administrator-visible tasks, deliver Client registration, access permissions, meaningful task names, and accurate final execution status together; successful server-side dispatch alone is incomplete.
Then Choose the Execution Model
After deciding to use Scheduler, choose according to business complexity:
| Scenario | Choice | Implementation boundary |
|---|---|---|
| Periodic cleanup, cache refresh, a single report, or one business Service call | Own target type | Short operations may complete directly; hand lengthy work to a JobExecutor |
| A simple operation that happens hourly | Own target type | Cron alone is not a reason to introduce a heavier execution system |
| Immediate asynchronous execution | JobExecutor |
No Cron Schedule is needed |
| A one-time delay, such as ten minutes after a request | Queue delay |
No Cron Schedule is needed; JobExecutor has no delay |
| Another execution system with its own references, status queries, and completion protocol | Own target type | The same registerTarget() call, with inspect() and completion reporting for work that finishes later |
Every schedule points at a registered target; registerTarget() is the target extension surface, and there is no built-in target type. A target does not guarantee exactly-once external business effects; design business idempotency.
Read by Task
- To create or change a schedule, read Definitions, Registration, and Synchronization.
- To register or review a target, hand its work to a
JobExecutor, report completion, or diagnose a historical occurrence after retargeting, read Target Extensions and Execution Protocol. - To integrate or review the UI/API and permissions, interpret status, or diagnose missing definitions, read Operations and Verification, including the complete management route table, separate status dimensions, and application identity checks.
Development Loop
- Establish which tasks and execution records administrators need to see. Check Server/Client/CLI registration, page permissions, the application's
jobsconfiguration (aredisadapter for more than one instance;memoryserves one process) andJobExecutorServiceProvidercomposition and target availability, then choose or register the target type. - Implement business logic and Providers in application source, and call
schedulerServiceToken.defineSchedule(definition)with an application-wide stable key from that Provider'sregister()/boot(). - Validate payload/inpu
Preguntas frecuentes
¿Todos los trabajos en segundo plano deben usar Scheduler?
No. La skill indica que las tareas que no necesitan visibilidad en la interfaz no deben usarlo.
¿Quién puede activar o desactivar una tarea?
Los administradores de negocio autorizados, desde la interfaz.
¿Scheduler contiene la lógica de negocio?
No. La aplicación es la dueña de la lógica, y Scheduler se encarga de la programación y el estado.
Detalles
Descripción original del autor
Develop scheduled tasks in NocoBase 3 that business administrators need to view and track through the application UI. Define schedules in code, register the target a schedule points at, integrate execution status, and report completion. Do not use Scheduler to manage tasks that do not need UI visibility.
repo: nocobase/nocobase
Popularidad
- Estrellas en GitHub
- 25 mil
- Posición en el ranking
- #10105
- Licencia
- —
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
nocobase-app-development
25 milAyuda a tu agente a crear páginas, rutas, datos, permisos y pruebas para una aplicación de negocio completa en NocoBase 3.
shadcn
25 milAyuda a tu agente a encontrar, añadir, arreglar y dar estilo a componentes de shadcn/ui en un proyecto web, usando su documentación oficial y sus registros.
nocobase-app-plugin-development
25 milAyuda a tu agente a crear y mantener plugins de NocoBase 3 dentro de una app existente, incluidas las partes de servidor, cliente, base de datos y registro.
nocobase-app-upgrade
25 milAyuda a tu agente a actualizar una app de NocoBase a una versión más nueva de la plantilla, incorporando sus cambios sin perder tu trabajo.
Skills parecidas
knowledge-automation
394 milAyuda a tu agente a configurar una tarea recurrente que añade contenido nuevo a tu bóveda de Knowledge según un horario, y después comprueba que la tarea funciona.
knowledge-source-ingest
394 milAyuda a tu agente a mantener al día una bóveda de Knowledge con elementos nuevos de canales de chat, fuentes o buzones, sin volver a añadir lo que ya tiene.
benchmark
280 milAyuda a tu agente a medir la velocidad y el rendimiento del código. Es útil para asegurar que todo vaya rápido y encontrar problemas de lentitud.