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.

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'
1 Like

I use this package:

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.)

Hi there,

Just want to share, i also use the Parse server scheduler and so far until now i had no problems, i use it as on single instance, and it build as separate parse server from the main Parse Server, the main Parse server call the job function to the Parse server scheduler and the sceduler will run the job.