1
我有一個隊列中有很多任務。我想用一個後端實例來處理這個隊列。我的配額信息告訴我,我在數百個前端實例小時中已經完成預算,並且沒有使用任何後端實例小時。由於我只配置了一個後端實例,因此我期望每小時收費不超過1(後端)實例小時。下面是我的配置:GAE:隊列,配額和後端實例
backends.yaml
backends:
- name: worker
class: B8
instances: 1
options:dynamic
queue.yaml中
- name: import
rate: 20/s
bucket_size: 40
添加任務,我的腳本排隊
deferred.defer(importFunction, _target='worker', _queue="import")
法案狀態
Resource Usage
Frontend Instance Hours 198.70 Instance Hours
Backend Instance Hours 0.00 Instance Hours
任務頭
X-AppEngine-Current-Namespace
Content-Type application/octet-stream
Referer http://worker.appname.appspot.com/_ah/queue/deferred
Content-Length 1619
Host worker.appname.appspot.com
User-Agent AppEngine-Google; (+http://code.google.com/appengine)
你部署的後端代碼? – 2012-08-04 11:06:46
啊不 - 我不知道你必須這樣做。我假設說明在這裏:https://developers.google.com/appengine/docs/python/backends/? – waigani 2012-08-04 22:18:43
究竟是這些:https://developers.google.com/appengine/docs/python/backends/overview#Commands – 2012-08-05 07:23:09