That sounds reasonable, can someone point me to some help on how or where I do that? = )
Is this something I do in the cron.yaml file or in my cleanup() definition? Or possibly in the handler under the app.yaml? On Oct 14, 8:17 am, "Nick Johnson (Google)" <[email protected]> wrote: > 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 <[email protected]> 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---
