Cron - targeting a particular version of a particular module

126 views
Skip to first unread message

Dawid

unread,
Feb 20, 2014, 12:29:04 PM2/20/14
to google-a...@googlegroups.com
Hi all,

How can have a cron job target a particular version of a particular module? I've tried:
    target: version.module

Unfortunately, appcfg.py won't accept it:
Unable to assign value 'debug.reports' to attribute 'target':
Value 'debug.reports' for target does not match expression '^(?:^(?:(?:((?!-)[a-z\d\-]{1,63}):)?)((?!-)[a-z\d\-]{1,100})$)$'
  in "./cron.yaml", line 34, column 11

Many thanks,
Dawid

Vinny P

unread,
Feb 21, 2014, 2:13:39 AM2/21/14
to google-a...@googlegroups.com
As far as I know, target only can specify a version or a module. What you can do is generate a dispatch file ( https://developers.google.com/appengine/docs/java/modules/routing ) and map the version/module you want to a specific path.
 
 
-----------------
-Vinny P
Technology & Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

PK

unread,
Apr 6, 2015, 10:54:42 PM4/6/15
to google-a...@googlegroups.com
I hit the same issues with tasks today. The documentation states that the target can have the version.module value so this sounds like a bug. I filed the issue, please star it.

Shobhit

unread,
Apr 7, 2015, 1:55:29 PM4/7/15
to google-a...@googlegroups.com
Hi Dawid.

First thing in cron.yaml, you are supposed to use version or module in the target parameter. If you wish to target the cron job for a particular version and module you can use the dispatch.yaml as described by Vinny in the previous messages.

Paul Canning

unread,
Jul 22, 2015, 10:53:36 AM7/22/15
to Google App Engine
I am facing a similar issue.

Firstly, how do you target a specific version of a module in the dispatch.yaml? The docs only talk about modules.

Secondly, is there anyway to use more then 10 dispatch rules? I have already had to use 5 for routing subdomains (unless there is another way to achieve this?)

Paul Canning

unread,
Jul 22, 2015, 10:59:48 AM7/22/15
to Google App Engine
Wait, I got it. You can target the versions using the format:

version-dot-module

e.g. 1-5-dot-main-module

Paul Canning

unread,
Jul 24, 2015, 12:00:30 PM7/24/15
to Google App Engine, pa...@drawandcode.com
to add, my above answer only works for cron.yaml
Reply all
Reply to author
Forward
0 new messages