Selfhosted Parse with cron jobs

Hey guys,

is there an easy approach to activate scheduled jobs in parse server?

There are some packages on npm, but none of this is working.
Thanks!

Easiest way is defining your job with Parse.Cloud.job() and schedule the jobs using your OS crontab. You can setup crontab with the periodicity you want and make it to send a request like this:

curl -X POST -H 'X-Parse-Application-Id: appId' -H 'X-Parse-Master-Key: masterKey' https://my-parse-server.com/parse/jobs/myJob
1 Like

I use this package:

https://www.npmjs.com/package/parse-server-jobs-scheduler

Install the package, add a few lines in the Parse Cloud code main file.

Configure the execution of jobs by Parse Dashboard

I used this already and somehow didn’t work. Even the npm description says it’s better to use normal crons.

I have been using it on a project for over a year.
I had no problems.
But I have a simple instance and not a cluster (which is what the documentation says, in this case cron is better.)