我在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