Schedule

Runs your own functions on a cron-style schedule inside the Payload server

Community 2 8/wk MIT v0.2.0

Installation

pnpm add payload-plugin-schedule

About

Schedule Plugin lets you run custom functions at fixed times or repeating intervals while your Payload server is running. You list each job in the Payload config with a cron-style timing and a callback, so recurring tasks such as cleanup, syncing data or sending reports do not need a separate cron server.

Each callback receives the Payload instance, so it can use the local API to read and write documents. It also receives the time the run was meant to fire, which helps when a run is late. Jobs are held in memory, so schedules you set in the config are restored on each start, but jobs added at runtime are not kept after a restart.

Package info

Package name
payload-plugin-schedule
Latest version
0.2.0
Unpacked size
37 kB
License
MIT
Weekly downloads
8
Last publish
Mar 23, 2024

Similar plugins

More in Workflow

Adds order states, status history, internal notes and tracking to orders

Reservation and booking management with conflict detection and a calendar view

Stores DNA reference panels and reviewed sample results in Payload collections

Tracks lab sample kits from stock to keeper and back, with a custody trail

Lets guardians suggest or approve changes to a minor's records and requests

Supplier lists and purchase orders that draft reorders from your stock levels