@recordset/adonis6-scheduler
v1.3.0
Published
A modern, TypeScript-first scheduler/cron integration for AdonisJS 6.
Maintainers
Readme
@recordset/adonis6-scheduler
A modern, TypeScript-first scheduler/cron integration for AdonisJS 6.
🚀 Features
make:taskcommand for generating scheduled task classesscheduler:runcommand for running scheduler workers- BaseTask class for clean task organization
- Flexible cron schedule configuration
- TypeScript-first, ESM-ready
📦 Installation
- Install dependencies:
npm install @recordset/adonis6-scheduler - Configure:
node ace configure @recordset/adonis6-scheduler - Generate jobs with:
node ace make:task MyTask - Start the worker:
node ace scheduler:run
🧑💻 Example Task
import { BaseTask } from '@recordset/adonis6-scheduler/task'
export default class MyTask extends BaseTask {
static schedule = '0 0 * * *' // every day at midnight
async handle() {
// Task logic here
}
}📚 Documentation
SETUP.md- Step-by-step setup instructionsSUMMARY.md- Package overview and features
📝 License
MIT
