【发布时间】:2013-10-02 16:23:43
【问题描述】:
我在 Windows Azure 中使用移动服务。我使用可用于移动服务的新调度程序。我称为 SendOut 的调度程序。
我正在运行一个非常简单的脚本,它将向队列中插入一条消息。整个脚本:
function SendOut() {
var azure = require('azure');
var queueService = azure.createQueueService("mailsoutscheduler", "[The key to the storage]");
queueService.createQueueIfNotExists("mailsout", function(error){ });
queueService.createMessage("mailsout", "SendOut", function(error){});
}
当我尝试运行一次脚本时它工作正常。它计划每 5 分钟运行一次。它通常很顺利。但是有时我会收到此错误:
发生未处理的异常。错误:您的脚本之一导致 服务变得无响应并重新启动服务。这是 通常由执行无限循环或长时间的脚本引起, 阻塞操作。脚本后服务重启 连续执行超过 1000 毫秒。 在 EventEmitter。 (C:\DWASFiles\Sites\VogSendOut\VirtualDirectory0\site\wwwroot\runtime\server.js:84:17) 在 EventEmitter.emit (events.js:88:20)
我无法弄清楚为什么会出现此错误 - 或如何解决它。
可能是因为它在免费移动服务层中运行?
【问题讨论】:
-
我也看到了这个问题。在过去 10 天左右的时间里,我看到了其他关于此的报道。也许这是最近引入的问题。
标签: node.js azure scheduler azure-mobile-services