queue.yaml not read on dev server or uploaded to production when in directory above modules

553 views
Skip to first unread message

yngling

unread,
Apr 23, 2015, 7:28:24 AM4/23/15
to google-ap...@googlegroups.com
Hi all,

Our app has multiple modules and is structured as follows:

project-name/
    adm/
    app/
        app.yaml
    core/
        core.yaml
    apns/
        apns.yaml
    analytics/
        analytics.yaml
    office/
        office.yaml
    src/
    queue.yaml
    cron.yaml
    index.yaml

The adm directory is just for keeping related files, such as database files (it is even excluded from git). The src directory is for code common to the different modules. queue.yaml is kept at the top level.

Each module (all but the "adm" and "src" directories) has a .yaml file which resides in its own module (e.g. app/app.yaml, apns/apns.yaml).

I believe this is the structure recommended here: https://cloud.google.com/appengine/docs/go/modules/#Go_Application_hierarchy

When I start the dev server, I run it from the top level directory: ../google_appengine/dev_appserver.py --host=0.0.0.0 --port=8885 --datastore_path=adm/datastore --blobstore_path=adm/blobstore --log_level=debug --require_indexes=yes app/app.yaml

When I upload I do the same: ../google_appengine/appcfg.py update apns/apns.yaml core/core.yaml app/app.yaml analytics/analytics.yaml office/office.yaml

When I start the dev server, no task queues are found in the admin console, and when I upload I specifically need to run update_cron and the like. The dev server is the biggest problem, as task queues is not detected.

Any help would be greatly appreciated.

Ex animo,
/Alexander

Glenn Lewis

unread,
Apr 23, 2015, 3:14:51 PM4/23/15
to yngling, google-appengine-go
Have you tried:
dev_appserver.py --host=0.0.0.0 --port=8885 --datastore_path=adm/datastore --blobstore_path=adm/blobstore --log_level=debug --require_indexes=yes app/app.yaml *.yaml
and
appcfg.py update apns/apns.yaml core/core.yaml app/app.yaml analytics/analytics.yaml office/office.yaml *.yaml
?
In the case of appcfg.py, you could perform that update in a separate operation: appcfg.py update queue.yaml
-- Glenn

--
You received this message because you are subscribed to the Google Groups "google-appengine-go" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengin...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

yngling

unread,
Apr 23, 2015, 3:21:15 PM4/23/15
to google-ap...@googlegroups.com, ayng...@gmail.com
Hi Glenn,

When trying the dev server line I get: 

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

  in "cron.yaml", line 3, column 1

For upload I use appcfg.py update_queues queue.yaml, etc. That works fine, so upload not an issue, really. The former issue prohibits me fro running the app locally, though (it fails when submitting a task to a queue that does not exist), so my angular developer is upset he cannot work locally... (and understandably so).


/Alexander
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine-go+unsub...@googlegroups.com.

Glenn Lewis

unread,
Apr 23, 2015, 5:34:32 PM4/23/15
to yngling, google-appengine-go
And what happens when you comment out or remove the "cron" line in the yaml file and try to run locally?
-- Glenn

Hi Glenn,

To unsubscribe from this group and stop receiving emails from it, send an email to google-appengin...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "google-appengine-go" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengin...@googlegroups.com.

yngling

unread,
Apr 23, 2015, 5:38:10 PM4/23/15
to google-ap...@googlegroups.com, ayng...@gmail.com
Well, this is the cron.yaml file... so I assume it is necessary. But, here's the result if I do it:

google.appengine.api.yaml_errors.EventError: 'NoneType' object is not callable

  in "cron.yaml", line 3, column 3

Hi Glenn,

To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine-go+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "google-appengine-go" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine-go+unsub...@googlegroups.com.

alexandr...@gmail.com

unread,
Jul 16, 2017, 8:57:16 PM7/16/17
to google-appengine-go, ayng...@gmail.com
Hi yngling , how did you fix this error at the end? I'm having the same
Reply all
Reply to author
Forward
0 new messages