queue.yaml not working in App engine (development)

こ雲淡風輕ζ 提交于 2019-12-07 14:52:48

问题


I'm trying to use "queue.yaml" to define queues in a Google App Engine app (Java version).

 queue:
 - name: default
   rate: 5/s
 - name: availableTicketsAlert
   rate: 5/s
 - name: billingReminder
   rate: 5/s
 - name: cseIndexing
   mode: pull

When I try to see if they've been created correctly in this URL: /_ah/admin/taskqueue, I only see "default" queue.

Instead, If I try to create the using with the XML file all works correctly (queue.xml):

<queue-entries>
<queue>
    <name>default</name>
    <rate>5/s</rate>
</queue>
<queue>
    <name>availableTicketsAlert</name>
    <rate>5/s</rate>
</queue>
<queue>
    <name>billingReminder</name>
    <rate>5/s</rate>
</queue>
</queue-entries>

Any ideas of what I'm doing wrong?

Do I have to update them manually with: appcfg.py update_queues myapp/ or something like that?

Thanks!

来源:https://stackoverflow.com/questions/11135861/queue-yaml-not-working-in-app-engine-development

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!