Skip to content

LMBernardo/parse-server-job-scheduler

 
 

Repository files navigation

Parse Server Job Scheduler

Forked from LcpMarvel/parse-server-jobs-scheduler

Available on GitHub and npm

Notes

  • It's better to use cron jobs instead of using this library.
  • You have to handle any concurrency issues. This plugin is run by Parse Server's workers if cluster is true.
  • This library REQUIRES Parse cloud code to be set up and functional.
  • Parse must be initialized before creating the scheduler.

How to use it?

Install the library

$ npm install parse-server-job-scheduler --save

Add the following lines in your Cloud code main.js file, or in a file included by main.js

try {
    var scheduler = require('parse-server-job-scheduler');
    scheduler();
} catch (err) {
    console.error("Error: " + err);
    console.error("Failed to set up job scheduling!");
}

Disclaimer

Please read the LICENSE.

This library is NOT fully tested and is NOT guaranteed to work well, or at all. I am not responsible for anything resulting from the use, or misuse, of this library.

Github issues and pull requests are welcome.

Please email any questions or concerns to the author of this package, or open a discussion.

About

Runs scheduled Parse Server jobs created in Parse Dashboard

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%