I am trying to migrate my cron to the new specification.
Specifically, I want to make this run on the first day of the month,
not necessarily the first monday:

cron:
- description: …
  url: /…/
  schedule: 1st monday of month 00:00
  timezone: America/Los_Angeles

The documentation implies 1 of month 00:00 is the proper format, but
that yields this error on the local SDK:

Traceback (most recent call last):
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/ext/webapp/__init__.py", line 507, in __call__
    handler.get(*groups)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/ext/admin/__init__.py", line 244, in get
    schedule =
groctimespecification.GrocTimeSpecification(entry.schedule)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/cron/groctimespecification.py", line 82, in
GrocTimeSpecification
    parser.time_string)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/cron/groctimespecification.py", line 189, in __init__
    super(SpecificTimeSpecification, self).__init__(self)
TypeError: object.__init__() takes no parameters

1st of month yields this error:
Traceback (most recent call last):
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/ext/webapp/__init__.py", line 507, in __call__
    handler.get(*groups)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/ext/admin/__init__.py", line 229, in get
    cron_info = _ParseCronYaml()
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/ext/admin/__init__.py", line 1308, in _ParseCronYaml
    cron_info = croninfo.LoadSingleCron(fh)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/api/croninfo.py", line 124, in LoadSingleCron
    listener.Parse(cron_info)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/api/yaml_listener.py", line 218, in Parse
    self._HandleEvents(self._GenerateEventParameters(stream,
loader_class))
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/api/yaml_listener.py", line 169, in _HandleEvents
    raise yaml_errors.EventError(e, event_object)
EventError: Unable to assign value '1st of month 00:00' to attribute
'schedule':
%d format: a number is required, not NoneType
  in "cron.yaml", line 4, column 13

What is the proper syntax to do this?  Thanks.

Relevant documentation: 
http://code.google.com/appengine/docs/python/config/cron.html

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to