Ghost/ghost/job-manager
Naz ae4f35ddd8 Changed scheduleJob method signature to take when parameter first
no issue

- Accepting the schedule or a data when scheduled job should be run would follow a signature used in other established frameworks: (1) https://github.com/mperham/sidekiq/wiki/Ent-Periodic-Jobs#definition
- Another reason to put scheduling parameter first is this would allow leaving an optional "data" parameter as last
2020-11-10 13:15:10 +13:00
..
lib Changed scheduleJob method signature to take when parameter first 2020-11-10 13:15:10 +13:00
test Changed scheduleJob method signature to take when parameter first 2020-11-10 13:15:10 +13:00
.eslintrc.js Added new job manager package 2020-08-11 21:17:52 +01:00
index.js Added new job manager package 2020-08-11 21:17:52 +01:00
LICENSE Added new job manager package 2020-08-11 21:17:52 +01:00
package.json Published new versions 2020-11-05 17:38:41 +13:00
README.md Added new job manager package 2020-08-11 21:17:52 +01:00

Job Manager

Install

npm install @tryghost/job-manager --save

or

yarn add @tryghost/job-manager

Usage

Develop

This is a mono repository, managed with lerna.

Follow the instructions for the top-level repo.

  1. git clone this repo & cd into it as usual
  2. Run yarn to install top-level dependencies.

Run

  • yarn dev

Test

  • yarn lint run just eslint
  • yarn test run lint and tests

Copyright & License

Copyright (c) 2020 Ghost Foundation - Released under the MIT license.