Fixed working with the pending parser, but not running

I am working on a Parse application and I need it to run a background job once a day that gets data from the site and stores it in a database. However, work always gets stuck in "Waiting". It claims to be allowed on facebook, but that doesn't work for me. Here's the code:

Parse.Cloud.job("myJob", function(request, status) {
    console.log("Working");
    status.message("Working!");
});

      

It shows the assignment correctly and I can run it, but it always gets stuck in "Pending". I waited three hours, still waiting. Used another app with no luck.

Any help would be appreciated.

Thank!

Relevant Facebook bug report .

+3


source to share


1 answer


You must call status.success (); or status.error (); at least once. After that, it will update the status.



0


source







All Articles