Task Scheduler for AdonisJS
Build reliable cron jobs and scheduled tasks with an elegant, decorator-based API. Features overlapping prevention, timezone support, and hot-reloading during development.
AdonisJS v6+•TypeScript•MIT License
Quick Start
Get up and running with scheduled tasks in minutes
Install the package
Install AdonisJS Scheduler using the Ace CLI:This command automatically configures the provider and creates the necessary files.
Key Features
Everything you need for robust task scheduling
Intuitive Frequency API
Expressive methods like
.everyMinute(), .daily(), and .weekly() make scheduling readable and maintainable.Decorator Scheduling
Use the
@schedule decorator to define schedules directly on your command classes.Overlap Prevention
Built-in locking ensures tasks don’t run concurrently, preventing race conditions.
Tag-Based Filtering
Organize and run specific groups of scheduled tasks using tags.
Timezone Support
Schedule tasks in any timezone for international deployments.
Lifecycle Hooks
Execute custom logic before and after each scheduled task runs.
Explore the Documentation
Learn how to build powerful scheduled tasks
Ready to get started?
Install AdonisJS Scheduler and build your first scheduled task in minutes.
View Installation Guide