我在Windows Azure中使用移动服务。我使用可用于移动服务的新调度程序。我调用SendOut的调度程序。Windows Azure移动服务调度程序执行超时
我正在运行一个非常简单的脚本,它会将消息插入到队列中。整个脚本:
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分钟运行一次。它通常会很好。但有时我收到此错误:
An unhandled exception occurred. Error: One of your scripts caused the service to become unresponsive and the service was restarted. This is commonly caused by a script executing an infinite loop or a long, blocking operation. The service was restarted after the script continuously executed for longer than 1000 milliseconds. at EventEmitter. (C:\DWASFiles\Sites\VogSendOut\VirtualDirectory0\site\wwwroot\runtime\server.js:84:17) at EventEmitter.emit (events.js:88:20)
我想不通为什么我得到这个错误 - 或如何解决它。
难道是因为它运行在免费的移动服务层?
我也看到这个问题。我在过去10天左右见过其他报道。也许这是最近引入的问题。 – dcstraw