Ghost/ghost/job-manager
Naz c85ec6aaa5 Added support for job execution from module path
no issue

- Jobs should not always be functions, one of the standard practices is having a job defined in a module as a self contained executable function
- First parameter of `addJob` function now also handles path to modules which it imports and executes
2020-11-10 16:32:47 +13:00
..
lib Added support for job execution from module path 2020-11-10 16:32:47 +13:00
test Switched cron validation library to cron-validate 2020-11-10 13:33:01 +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 Switched cron validation library to cron-validate 2020-11-10 13:33:01 +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.