Yes, the new 'synchronized' keyword should handle this. Peter
On Mar 26, 2:34 pm, Blake <[email protected]> wrote: > You can do it, it's in the > docs:http://code.google.com/appengine/docs/java/config/cron.html#The_Sched... > > On Mar 25, 11:25 pm, Eli Jones <[email protected]> wrote: > > > > > cron.yaml is generally dependable.. but, every once in awhile.. a cron will > > not execute even though it is scheduled. > > > (over 3-4 months I maybe had this happen twice). > > > So.. you are best served by using TaskQueue to handle the timing and > > execution of your tasks.. while using cron.yaml to schedule the daily > > startup. > > > The ugly hack I use is to have three scheduled cron jobs that run leading up > > to the initial start time (maybe one kicks off an hour before, and the next > > starts at 30 minutes before and the final one tries at 10 minutes before). > > They each try to add a named task to the queue that will start up at the > > actual time. > > > If the first cron runs.. then the other crons will silently fail since the > > named task is already there. If there was an issue with an earlier cron not > > running (this is the worst case scenario), hopefully one of the next ones > > will succeed. > > > On Thu, Mar 25, 2010 at 10:44 PM, prgmratlarge <[email protected]>wrote: > > > > I guess I can always do something like that. Just wondering if there's > > > a syntax for the cron.yaml... > > > > On Mar 25, 10:14 pm, Shinichi Nakanishi <[email protected]> wrote: > > > > How about running a job every minute (synchronized) and check the time? > > > > > min = datetime.datetime.now().minute > > > > if min == 30: > > > > # do whatever > > > > > Or if you don't trust the App Engine Cron runs every minute, > > > > > if min >= 30: > > > > if !checkLog(year, month, day, hour): > > > > saveLog(year, month, day, hour) > > > > # do whatever > > > > > Shinichi > > > > > On Thu, Mar 25, 2010 at 17:38, prgmratlarge <[email protected]> > > > wrote: > > > > > How can I run a cron job at the 30 minute point on every hour. I don't > > > > > want it to go every half hour -- i want it to go on every half hour of > > > > > the hour. So it should specifically run at: > > > > > > 1:30,2:30,3:30,etc... > > > > > > -- > > > > > 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]<google-appengine%2Bunsubscrib > > > [email protected]> > > > . > > > > > For more options, visit this group athttp:// > > > groups.google.com/group/google-appengine?hl=en. > > > > -- > > > 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]<google-appengine%2Bunsubscrib > > > [email protected]> > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/google-appengine?hl=en. -- 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.
