我无法让dev_appserver.py识别使用queue.yaml创建的自定义队列。他们不出现在http://localhost:8000/taskqueue,当我尝试向他们添加任务时,我得到UnknownQueueError。它在生产环境中工作正常。Google App Engine queue.yaml无法在开发服务器上工作
我使用python 2.7在Windows 10
queue.yaml中
total_storage_limit: 5G queue: - name: not-queue-a bucket_size: 500 rate: 10/s retry_parameters: task_retry_limit: 2 min_backoff_seconds: 10 target: msnot - name: ui-worker target: msbui bucket_size: 200 rate: 1/s retry_parameters: task_retry_limit: 4 min_backoff_seconds: 1
我的项目结构是这样的:
|-- root |-- queue.yaml |-- index.yaml |-- dispatch.yaml |-- cron.yaml |-- microservice1 |-- app.yaml |-- microservice1.py |-- microservice2 |-- app.yaml |-- microservice1.py |-- microservice3 |-- app.yaml |-- microservice3.py |-- microservice4 |-- app.yaml |-- microservice4.py
我尝试添加队列的副本。 yaml到微服务子文件夹,但我仍然有同样的问题。我也重新启动了dev_appserver.py几次。