queue.yaml and gcloud run

489 views
Skip to first unread message

Dor litay

unread,
Jul 10, 2015, 5:11:38 AM7/10/15
to google-a...@googlegroups.com

Hello all,


How I can use 'queue.yaml' with "gcloud preview app run" ?


I could not find any instructions, and when I just try to add it to the run list, I get the following error:

google.appengine.api.yaml_errors.EventError: Unexpected attribute 'queue' for object of type AppInfoExternal.

Patrice (Cloud Platform Support)

unread,
Jul 10, 2015, 5:19:51 PM7/10/15
to google-a...@googlegroups.com, dor....@gmail.com
Hi Dor,

Unless there's something I'm missing, when you run devserver with queues, you never target your queues.yaml directly. 

If you run with dev_appserver.py, for instance you call it on your app itself, and the queue.yaml just follows.

Did you try "gcloud preview app run app.yaml"?

Cheers!

Dor Litay

unread,
Jul 11, 2015, 4:00:39 AM7/11/15
to google-a...@googlegroups.com
Hi Patrice,

With your replay i was able to figure it out.
My problem was that my application is based on modules, so i do not have 'app.yaml', and the documents pretty much just say to put 'queue.yaml' in the root folder, which doesn't work.
Moving 'queue.yaml' to the default module path solved the problem.

I really thing the documents should be more clear on this subject.

Thank you for the help.
 



--
You received this message because you are subscribed to a topic in the Google Groups "Google App Engine" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-appengine/ONM-D805ADc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/ed9ca353-3031-423f-9433-3120843c25ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dor litay

unread,
Jul 11, 2015, 12:32:53 PM7/11/15
to google-a...@googlegroups.com

Ok, so it turns out that 'gcloud run' behavior is even more strange, if there is a module name with a lower lexical order then 'default' (in my case it was 'admin'), then queue.yaml is not being loaded.

Patrice (Cloud Platform Support)

unread,
Jul 13, 2015, 10:18:05 AM7/13/15
to google-a...@googlegroups.com, dor....@gmail.com
Hi Dor,

Happy that my reply got you your answer.

I submitted a request to update the documents clearer, now that we advocate using gcloud, so that the behavior is easier to understand.

If you have other questions about the platform or hiccups as you develop, feel free to ask us, we'll be happy to look into these.

Cheers
Reply all
Reply to author
Forward
0 new messages