@dmitriynasedkin/adonis5-scheduler
TypeScript icon, indicating that this package has built-in type declarations

1.0.9 • Public • Published

Table of contents

adonis5-scheduler

AdonisJS5, cron, cronjob, scheduler

travis-image typescript-image npm-image license-image

This library provides an easy way to schedule recurring tasks for AdonisJS v5.

How it works

Installation

Install it:

npm i --save adonis5-scheduler

Compile your code:

node ace serve --watch

Connect all dependences:

node ace invoke adonis5-scheduler

Usage

Creating your first task

node ace make:task MyTaskName

Starting the scheduler

Starting an instance of the kue listener is easy with the included ace command.

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.

node ace scheduler:run
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.

Thanks

Special thanks to the creator(s) of AdonisJS for creating such a great framework and nrempel creator scheduler package for Adonis v4

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.90latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.90
1.0.80
1.0.70

Package Sidebar

Install

npm i @dmitriynasedkin/adonis5-scheduler

Weekly Downloads

0

Version

1.0.9

License

MIT

Unpacked Size

28.7 kB

Total Files

25

Last publish

Collaborators

  • dmitriynasedkin