Im writing a twitter app. It accepts commands as Direct Messages, so i have setup a third party cronjob service to invoke a handler that processes DMs at regular intervals. I have a Model 'Info' that has just one entry, it stores some common data which are used in many places in the App(in this case, the time when the messages were processed recently). The general pattern of my handler is like this:
msgs = api.GetDirectMessages(since = info.msg_polled) if not msgs: return logging.info('Processing Messages since %s ' % str(info.msg_polled)) for msg in msgs: ...process commands... logging.info('Processed Message :- @%s : %s' % (msg.sender_screen_name, msg.text)) info.msg_polled = datetime.datetime.now() info.put() But sometimes i get logs like this : I 03-30 07:50AM 10.973 Processing Messages since Sun, 29 Mar 2009 11:41:59 GMT I 03-30 07:50AM 11.122 Processed Message :- @foo : Foo_Bar ------------------------------------------------------- I 03-30 07:46AM 08.014 Processing Messages since Sun, 29 Mar 2009 11:41:59 GMT I 03-30 07:46AM 08.130 Processed Message :- @foo : Foo_Bar Here, it seems that info is not getting commited to the database. The message is processed multiple number of times, sometimes upto 10+ times before the msg_polled value changes. But i am not getting any Datastore exceptions. This happens only once in a while. Any help is appreciated. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---