I'm trying to run a Parse background job locally instead of the Parse cloud. And I need the Node SDK because the browser SDK doesn't support use of the master key which this job needs.
Here is what I have tried in order to run the job locally :
var Parse = require('parse-cloud-express').Parse;
Parse.Cloud.job("myBackgroundJob", function(request, status) {
status.success("Hello world!");
});
I have 2 issues :
- I don't know how to actually run the job. I think the
Parse.Cloud.job
call only registers it. And I probably need to initialise the SDK (with API keys) in some way but I don't know how. - When I run this code it outputs
Running jobs is not supported in parse-cloud-express
, which leads me to believe that I might not be able to make it work this way.