
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
adonis-scheduler
Advanced tools
This library provides an easy way to schedule recurring tasks for AdonisJS v4.
Use branch adonis-v3 for AdonisJS version 3
npm install --save adonis-scheduler
Register it in start/app.js
:
const providers = [
...
'adonis-scheduler/providers/SchedulerProvider'
]
const aliases = {
...
Scheduler: 'Adonis/Addons/Scheduler'
}
Register the commands:
const aceProviders = [
...
'adonis-scheduler/providers/CommandsProvider'
]
Starting an instance of the kue listener is easy with the included ace command. Simply run adonis run:scheduler
.
The provider looks for jobs in the app/Tasks
directory of your AdonisJS project and will automatically register a handler for any tasks that it finds.
Jobs are easy to create. Run adonis make:task Example
. They expose the following properties:
Name | Required | Type | Static | Description |
---|---|---|---|---|
schedule | true | many | true | The schedule for which the task should run. More docs. |
handle | true | function | false | A function that is called for this task. |
Special thanks to the creator(s) of AdonisJS for creating such a great framework.
FAQs
Easy task scheduling for AdonisJS
The npm package adonis-scheduler receives a total of 854 weekly downloads. As such, adonis-scheduler popularity was classified as not popular.
We found that adonis-scheduler demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.