I am working on a Parse app and I need it to run a background job once a day that gets data from a site and stores it into the database. However, the job always gets stuck at "Pending." It is claimed to be resolved at facebook, but it doesn't work for me. Here's the code:
Parse.Cloud.job("myJob", function(request, status) {
console.log("Working");
status.message("Working!");
});
It correctly shows the job, and I can run it, but it always gets stuck on "Pending." I waited for three hours, still pending. Used a different app, no luck.
I would appreciate any help.
Thanks!
Corresponding Bug Report on Facebook.
You have to call status.success(); or status.error(); at least once. After that it will update the status.