本文介绍了函数未在Parse.com上更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Parse.com上具有正常运行的此功能:

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

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

但是看起来好像很奇怪,如果我像往常一样使用以下命令更新它(保存并使用parse部署):

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

以前有人看过吗?

另一个小问题:是否有办法清除旧记录(在Parse上)?那将是一个基本的有用功能.

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.

推荐答案

请转到"CloudCode"部分,并检查代码是否与您期望的相同.

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

这篇关于函数未在Parse.com上更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-28 03:54