Hi Chris, You need to make sure your cron handler imports the module containing your model definitions. The error you're seeing occurs because the datastore can't find the definition for the model you're trying to retrieve.
-Nick Johnson On Tue, Oct 13, 2009 at 11:01 PM, Chris S <sanders.ch...@gmail.com> wrote: > > I'm trying to use a cron job to delete all of one Kind. It works fine > on the development server, and I can even query via the DataViewer but > I get a Kind error when I run live. Here's what I have: > > > Located in my /init/default: > from google.appengine.ext import db as gdb > > def cleanup(): > q=gdb.GqlQuery("SELECT * FROM item2") > result=q.fetch(500) > gdb.delete(result) > > ------------------------ > Cron.yaml: > cron: > - description: Item Cleanup > url: /init/default/cleanup > schedule: every 30 minutes > > ------------------------ > app.yaml: > > handlers: > - url: /remote_api > script: $PYTHON_LIB/google/appengine/ext/remote_api/handler.py > login: admin > > - url: /(?P<a>.+?)/static/(?P<b>.+) > static_files: applications/\1/static/\2 > upload: applications/(.+?)/static/(.+) > secure: optional > > - url: /init/default/cleanup > script: gaehandler.py > login: admin > > - url: .* > script: gaehandler.py > secure: optional > > ------------------------ > Received Error Message: > File "/base/python_lib/versions/1/google/appengine/ext/db/ > __init__.py", line 225, in class_for_kind > raise KindError('No implementation for kind \'%s\'' % kind) > KindError: No implementation for kind 'item2' > > ------------------------ > > What really stumps me is this works on the development server. I can > even do the query above on both the development and live DataViewers > and both return results with out an error. What am I missing here? > > > -- Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 --~--~---------~--~----~------------~-------~--~----~ 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-appengine@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 -~----------~----~----~----~------~----~------~--~---