Function not updating on Parse.com

ぐ巨炮叔叔 提交于 2019-12-24 16:31:30

问题


I have this function, working normally, on Parse.com:

Parse.Cloud.job
 ("myBGFunction", function(request, status)
 {
 console.log("Entering myBGFunction.");
 });

But as strange as it may seem, if I update it (saving and using parse deploy) as usual with the following:

Parse.Cloud.job
 ("myBGFunction", function(request, status)
 {
 console.log("Entering myBGFunction (AAAA).");
 });

The next time I try to execute, the old function is executed (in the log), as if the update did go through, though I got no error message after running:

parse deploy

Has anyone seen this before?

One more tiny question: Is there a way to clear the old logs (on Parse)? That would be a basic useful feature.

Looking a bit more into details at what happens to my classes, it seems like "all is fine" except that what I can see in the log is outdated. That is as I wrote earlier, logs from previous versions. It makes it extremely difficult to debug a function, because all trace-log becomes impossible.


回答1:


Please go to the "CloudCode" section, and check if the code is the same as you expected.



来源:https://stackoverflow.com/questions/30929407/function-not-updating-on-parse-com

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!