cron - too many continues

1 view
Skip to first unread message

googlegeeza

unread,
Nov 23, 2009, 8:43:08 AM11/23/09
to Google App Engine
i know this has been posted before, but in other posts the error was
caused by redirects and other issues.

i have a cron job scheduled to run every minute (also tried it every 5
minutes). the cron job runs some code which prints a string to the the
log, that's it. but it doesn't run. the error on the cron jobs page in
the admin console is "Too many continues". This doesn't make sense as
I am not doing anything in the job, just printing to the log. Code as
below:

cron.yaml:
cron:
- description: TestCron
url: /testcron
schedule: every 1 minutes

test.py:
class TestCron(webapp.RequestHandler):
def get(self):
logging.info('cron test')

application = webapp.WSGIApplication( [('/testcron', TestCron),],
debug=True)

Why is it reporting too many continues? I am not looping anything, or
causing anything to 'continue' in any way.

Nothing gets printed to the log which suggests it's not even trying to
run my TestCron class.

Thanks in advance ...

Eli Jones

unread,
Nov 23, 2009, 9:36:52 PM11/23/09
to google-a...@googlegroups.com
does your app.yaml have the appropriate lines to handle the cron url as well?

app.yaml should have this line before other handlers:
- url: /testcron
script: test.py

or something like that..


--

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-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=.



googlegeeza

unread,
Nov 25, 2009, 6:28:50 AM11/25/09
to Google App Engine
yes, app.yaml is correctly configured - i can run the code via a url

On Nov 24, 2:36 am, Eli Jones <eli.jo...@gmail.com> wrote:
> does your app.yaml have the appropriate lines to handle the cron url as
> well?
>
> app.yaml should have this line before other handlers:
> - url: /testcron
> script: test.py
> or something like that..
>
> On Mon, Nov 23, 2009 at 8:43 AM, googlegeeza <
>
> > google-appengi...@googlegroups.com<google-appengine%2Bunsu...@googlegroups.com>
> > .

Mark

unread,
Dec 18, 2009, 3:09:53 PM12/18/09
to Google App Engine
I get the same error, and I'm just outputting text, no logging. I
hope this limitation gets removed. Let me know if anyone knows a
workaround besides using another cron service.

On Nov 25, 4:28 am, googlegeeza

> > > google-appengi...@googlegroups.com<google-appengine%2Bunsubscrib e...@googlegroups.com>

Mark

unread,
Dec 18, 2009, 4:16:11 PM12/18/09
to Google App Engine
I figured out another cause of this error. If you have the URL
handler set to "secure: always" then it will also fail. The cron hits
the http version, and gets redirected to https, which it doesn't
like.

Wesley Chun (Google)

unread,
Dec 18, 2009, 7:03:53 PM12/18/09
to Google App Engine, googlegeeza
mark,

glad you were able to figure it out on your own. it seems that it
turned into a "redirect" problem after all.

@googlegeeza: are you still having this problem or have you figured it
out as well? i tried your example, and it "works for me."

best regards,
-- wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
"Python Fundamentals", Prentice Hall, (c)2009
http://corepython.com

wesley.j.chun :: wesc...@google.com
developer relations :: google app engine

> > > > > the admin console is "Toomanycontinues". This doesn't make sense as


> > > > > I am not doing anything in the job, just printing to the log. Code as
> > > > > below:
>
> > > > > cron.yaml:
> > > > > cron:
> > > > > - description: TestCron
> > > > >  url: /testcron
> > > > >  schedule: every 1 minutes
>
> > > > > test.py:
> > > > > class TestCron(webapp.RequestHandler):
> > > > >    def get(self):
> > > > >        logging.info('cron test')
>
> > > > > application = webapp.WSGIApplication( [('/testcron', TestCron),],
> > > > > debug=True)
>

> > > > > Why is it reportingtoomanycontinues? I am not looping anything, or

Reply all
Reply to author
Forward
0 new messages