Google Groups Home
Help | Sign in
How can I add Timer to my GAE application?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Alex Cheng  
View profile  
 More options Nov 16 2008, 10:48 pm
From: Alex Cheng <AlexCheng1...@gmail.com>
Date: Sun, 16 Nov 2008 19:48:31 -0800 (PST)
Local: Sun, Nov 16 2008 10:48 pm
Subject: How can I add Timer to my GAE application?
I want to add a timer to my GAE application, so I can execute certain
logic at given interval. I tried python's Timer object (http://
www.python.org/doc/2.5.2/lib/timer-objects.html), but it doesn't seem
to work properly.

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alexander Kojevnikov  
View profile  
 More options Nov 17 2008, 12:14 am
From: Alexander Kojevnikov <alexan...@kojevnikov.com>
Date: Sun, 16 Nov 2008 21:14:45 -0800 (PST)
Local: Mon, Nov 17 2008 12:14 am
Subject: Re: How can I add Timer to my GAE application?

> I want to add a timer to my GAE application, so I can execute certain
> logic at given interval. I tried python's Timer object (http://www.python.org/doc/2.5.2/lib/timer-objects.html), but it doesn't seem
> to work properly.

You cannot use the timer, create threads or spawn processes. See
comments in issue 6 for possible workarounds:
http://code.google.com/p/googleappengine/issues/detail?id=6

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
A. TNG  
View profile  
 More options Nov 17 2008, 10:09 am
From: A.TNG <tang.j...@gmail.com>
Date: Mon, 17 Nov 2008 23:09:54 +0800
Local: Mon, Nov 17 2008 10:09 am
Subject: Re: [google-appengine] How can I add Timer to my GAE application?

On Mon, Nov 17, 2008 at 11:48 AM, Alex Cheng <AlexCheng1...@gmail.com> wrote:

> I want to add a timer to my GAE application, so I can execute certain
> logic at given interval. I tried python's Timer object (http://
> www.python.org/doc/2.5.2/lib/timer-objects.html), but it doesn't seem
> to work properly.

If you want cron jobs, you may try this
http://code.google.com/p/gaeutilities/wiki/Cron.
Good luck. :-)

--
Best Regards,
TANG Jiyu (Blog: http://jiyu.wordpress.com.cn)


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Maciej Pietrzak  
View profile  
(1 user)  More options Nov 17 2008, 3:20 pm
From: Maciej Pietrzak <mpietr...@gmail.com>
Date: Mon, 17 Nov 2008 12:20:05 -0800 (PST)
Local: Mon, Nov 17 2008 3:20 pm
Subject: Re: How can I add Timer to my GAE application?
On 17 Lis, 16:09, A.TNG <tang.j...@gmail.com> wrote:

> On Mon, Nov 17, 2008 at 11:48 AM, Alex Cheng <AlexCheng1...@gmail.com> wrote:

> > I want to add a timer to my GAE application, so I can execute certain
> > logic at given interval. I tried python's Timer object (http://
> >www.python.org/doc/2.5.2/lib/timer-objects.html), but it doesn't seem
> > to work properly.

> If you want cron jobs, you may try this http://code.google.com/p/gaeutilities/wiki/Cron.
> Good luck. :-)

Or you can try my http://schedulerservice.appspot.com/

Main difference is that gaeutilities Cron runs inside your own app
inside requests initiated by regular (human) clients. Cron tasks will
not fire if there are no viewers, but generally every useful site has
at least some page views per day, so that shouldn't be a big problem.

On the other hand, Scheduler Service uses agents that call your url
from external hosts, so the whole thing doesn't depend on human
guests. But those external agents run on my servers, not Google's
ones, so if I were you I woudn't expect them to be that reliable
(altough me being me - I do expect them do be reliable, because I
simply trust myself ;). Also, with gaeutilities you can define any
number of tasks that will execute as often as you like as long as
there are human-initiated page views on your site. Scheduler Service
let's you define only a few schedulers that run at most 1 time per
hour.

Maybe the best thing would be to mix two technologies in new sites,
that is - run Cron tasks from both human and schedulerservice urls and
after your site (hopefully) gets some audience, drop schedulerservice
part?

Hope that helps.

Regards
Maciej


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alex Cheng  
View profile  
 More options Nov 18 2008, 2:01 am
From: Alex Cheng <AlexCheng1...@gmail.com>
Date: Mon, 17 Nov 2008 23:01:21 -0800 (PST)
Local: Tues, Nov 18 2008 2:01 am
Subject: Re: How can I add Timer to my GAE application?
I used Cron from gaeutilities and it works fine for me.

Finally I can remove a damn button from my page since the user doesn't
need to manually click it to refresh the page but Cron will do it in
the background.

That's really cool!

On Nov 18, 4:20 am, Maciej Pietrzak <mpietr...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
bowman.joseph@gmail.com  
View profile  
 More options Nov 18 2008, 9:55 am
From: "bowman.jos...@gmail.com" <bowman.jos...@gmail.com>
Date: Tue, 18 Nov 2008 06:55:03 -0800 (PST)
Local: Tues, Nov 18 2008 9:55 am
Subject: Re: How can I add Timer to my GAE application?
Just be aware, Cron is extremely new and is still developmental. If
you have problems please report any issues at the gaeutilities project
site. http://code.google.com/p/gaeutilities/

I did my best to test all possible cron syntax to make sure it works
but rewriting that in python was a bit of a chore. Maciej is correct
on the functionality requiring pageviews to your site. It also will
currently only hit the site it's installed on for tasks. I've had a
weird issue where I couldn't submit a ":" to the webapp application
that supports the backend for it. That's why it requires relative,
rather than absolute, urls.

On Nov 18, 2:01 am, Alex Cheng <AlexCheng1...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google