As per my understanding, update statement returns the number of records updated. What does it return when no records are updated 0 or None ? Will have to modify my code accordingly
On Wednesday, March 7, 2012 9:33:48 AM UTC+5:30, howesc wrote: > > you probably need to add some more logging to see what is happening. > perhaps the row is not found? (remember eventual consistency), perhaps > there is some other error that is currently not being logged.... > > On Tuesday, March 6, 2012 7:18:36 AM UTC-8, Sushant Taneja wrote: >> >> Yes I did check GAE logs. >> There are no logs with severity level error. >> >> On Tuesday, March 6, 2012 7:46:52 PM UTC+5:30, yamandu wrote: >>> >>> I dont know, but have you examined the GAE log? >>> >>> 2012/3/6 Sushant Taneja <sushant.tanej...@gmail.com>: >>> > Hi, >>> > >>> > I thought the same but as you can see I have handled the Timeout >>> exception >>> > in the code. >>> > If its the Timeout then why I am unable to catch the exception ? >>> > >>> > On Tuesday, March 6, 2012 7:30:38 PM UTC+5:30, yamandu wrote: >>> >> >>> >> Looks its a timeout. >>> >> Maybe I am wrong but you can state an update too many records. GAE has >>> >> time limitations, I dont know how much because I dont use it anymore. >>> >> Search for the GAE docs on these limitations. >>> >> >>> >> 2012/3/6 Sushant Taneja <sushant.tanej...@gmail.com>: >>> >> > Hi All, >>> >> > >>> >> > I am building a invite module. >>> >> > In the controller, I have the following code : >>> >> > >>> >> > try: >>> >> > .... some initial stuff >>> >> > >>> >> > try: >>> >> > >>> >> > ... some stuff >>> >> > >>> >> > update_request_query = (db.INVITE_SIGNUP.email_id == >>> >> > request_email_id) >>> >> > >>> >> > >>> >> > >>> >>> db(update_request_query).update(activation_key=key,activation_url=activation_url) >>> >> > >>> >> > ... some other stuff >>> >> > >>> >> > except (Timeout,TransactionFailedError,InternalError), derr: >>> >> > logger.warn('Datastore exception for ID: '+ >>> >> > request_email_id +': '+ str(derr)) >>> >> > except (Error, Exception), ex: >>> >> > logger.error('Fatal Error: '+ request_email_id +': '+ >>> >> > str(ex)) >>> >> > >>> >> > The problem is that the update statement is not working on GAE. The >>> >> > fields >>> >> > which need to be updated are NULL and no error is thrown. >>> >> > From my observation, this is happening once a day approx around the >>> time >>> >> > when daily quota is reset. >>> >> > >>> >> > Am I doing something wrong here ? >>> >> > >>> >> > Thanks, >>> >> > Sushant >>> >> > >>> >> > >>> >> >>> >> -- >>> >> Carlos J. Costa >>> >> Cientista da Computação >>> >> Esp. Gestão em Telecom >>> >> >>> >> EL MELECH NEEMAN! >>> >> אָמֵן >>> >>> -- >>> Carlos J. Costa >>> Cientista da Computação >>> Esp. Gestão em Telecom >>> >>> EL MELECH NEEMAN! >>> אָמֵן >>> >>> > On Tuesday, March 6, 2012 7:18:36 AM UTC-8, Sushant Taneja wrote: >> >> Yes I did check GAE logs. >> There are no logs with severity level error. >> >> On Tuesday, March 6, 2012 7:46:52 PM UTC+5:30, yamandu wrote: >>> >>> I dont know, but have you examined the GAE log? >>> >>> 2012/3/6 Sushant Taneja <sushant.tanej...@gmail.com>: >>> > Hi, >>> > >>> > I thought the same but as you can see I have handled the Timeout >>> exception >>> > in the code. >>> > If its the Timeout then why I am unable to catch the exception ? >>> > >>> > On Tuesday, March 6, 2012 7:30:38 PM UTC+5:30, yamandu wrote: >>> >> >>> >> Looks its a timeout. >>> >> Maybe I am wrong but you can state an update too many records. GAE has >>> >> time limitations, I dont know how much because I dont use it anymore. >>> >> Search for the GAE docs on these limitations. >>> >> >>> >> 2012/3/6 Sushant Taneja <sushant.tanej...@gmail.com>: >>> >> > Hi All, >>> >> > >>> >> > I am building a invite module. >>> >> > In the controller, I have the following code : >>> >> > >>> >> > try: >>> >> > .... some initial stuff >>> >> > >>> >> > try: >>> >> > >>> >> > ... some stuff >>> >> > >>> >> > update_request_query = (db.INVITE_SIGNUP.email_id == >>> >> > request_email_id) >>> >> > >>> >> > >>> >> > >>> >>> db(update_request_query).update(activation_key=key,activation_url=activation_url) >>> >> > >>> >> > ... some other stuff >>> >> > >>> >> > except (Timeout,TransactionFailedError,InternalError), derr: >>> >> > logger.warn('Datastore exception for ID: '+ >>> >> > request_email_id +': '+ str(derr)) >>> >> > except (Error, Exception), ex: >>> >> > logger.error('Fatal Error: '+ request_email_id +': '+ >>> >> > str(ex)) >>> >> > >>> >> > The problem is that the update statement is not working on GAE. The >>> >> > fields >>> >> > which need to be updated are NULL and no error is thrown. >>> >> > From my observation, this is happening once a day approx around the >>> time >>> >> > when daily quota is reset. >>> >> > >>> >> > Am I doing something wrong here ? >>> >> > >>> >> > Thanks, >>> >> > Sushant >>> >> > >>> >> > >>> >> >>> >> -- >>> >> Carlos J. Costa >>> >> Cientista da Computação >>> >> Esp. Gestão em Telecom >>> >> >>> >> EL MELECH NEEMAN! >>> >> אָמֵן >>> >>> -- >>> Carlos J. Costa >>> Cientista da Computação >>> Esp. Gestão em Telecom >>> >>> EL MELECH NEEMAN! >>> אָמֵן >>> >>> > On Tuesday, March 6, 2012 7:18:36 AM UTC-8, Sushant Taneja wrote: >> >> Yes I did check GAE logs. >> There are no logs with severity level error. >> >> On Tuesday, March 6, 2012 7:46:52 PM UTC+5:30, yamandu wrote: >>> >>> I dont know, but have you examined the GAE log? >>> >>> 2012/3/6 Sushant Taneja <sushant.tanej...@gmail.com>: >>> > Hi, >>> > >>> > I thought the same but as you can see I have handled the Timeout >>> exception >>> > in the code. >>> > If its the Timeout then why I am unable to catch the exception ? >>> > >>> > On Tuesday, March 6, 2012 7:30:38 PM UTC+5:30, yamandu wrote: >>> >> >>> >> Looks its a timeout. >>> >> Maybe I am wrong but you can state an update too many records. GAE has >>> >> time limitations, I dont know how much because I dont use it anymore. >>> >> Search for the GAE docs on these limitations. >>> >> >>> >> 2012/3/6 Sushant Taneja <sushant.tanej...@gmail.com>: >>> >> > Hi All, >>> >> > >>> >> > I am building a invite module. >>> >> > In the controller, I have the following code : >>> >> > >>> >> > try: >>> >> > .... some initial stuff >>> >> > >>> >> > try: >>> >> > >>> >> > ... some stuff >>> >> > >>> >> > update_request_query = (db.INVITE_SIGNUP.email_id == >>> >> > request_email_id) >>> >> > >>> >> > >>> >> > >>> >>> db(update_request_query).update(activation_key=key,activation_url=activation_url) >>> >> > >>> >> > ... some other stuff >>> >> > >>> >> > except (Timeout,TransactionFailedError,InternalError), derr: >>> >> > logger.warn('Datastore exception for ID: '+ >>> >> > request_email_id +': '+ str(derr)) >>> >> > except (Error, Exception), ex: >>> >> > logger.error('Fatal Error: '+ request_email_id +': '+ >>> >> > str(ex)) >>> >> > >>> >> > The problem is that the update statement is not working on GAE. The >>> >> > fields >>> >> > which need to be updated are NULL and no error is thrown. >>> >> > From my observation, this is happening once a day approx around the >>> time >>> >> > when daily quota is reset. >>> >> > >>> >> > Am I doing something wrong here ? >>> >> > >>> >> > Thanks, >>> >> > Sushant >>> >> > >>> >> > >>> >> >>> >> -- >>> >> Carlos J. Costa >>> >> Cientista da Computação >>> >> Esp. Gestão em Telecom >>> >> >>> >> EL MELECH NEEMAN! >>> >> אָמֵן >>> >>> -- >>> Carlos J. Costa >>> Cientista da Computação >>> Esp. Gestão em Telecom >>> >>> EL MELECH NEEMAN! >>> אָמֵן >>> >>> > On Tuesday, March 6, 2012 7:18:36 AM UTC-8, Sushant Taneja wrote: >> >> Yes I did check GAE logs. >> There are no logs with severity level error. >> >> On Tuesday, March 6, 2012 7:46:52 PM UTC+5:30, yamandu wrote: >>> >>> I dont know, but have you examined the GAE log? >>> >>> 2012/3/6 Sushant Taneja <sushant.tanej...@gmail.com>: >>> > Hi, >>> > >>> > I thought the same but as you can see I have handled the Timeout >>> exception >>> > in the code. >>> > If its the Timeout then why I am unable to catch the exception ? >>> > >>> > On Tuesday, March 6, 2012 7:30:38 PM UTC+5:30, yamandu wrote: >>> >> >>> >> Looks its a timeout. >>> >> Maybe I am wrong but you can state an update too many records. GAE has >>> >> time limitations, I dont know how much because I dont use it anymore. >>> >> Search for the GAE docs on these limitations. >>> >> >>> >> 2012/3/6 Sushant Taneja <sushant.tanej...@gmail.com>: >>> >> > Hi All, >>> >> > >>> >> > I am building a invite module. >>> >> > In the controller, I have the following code : >>> >> > >>> >> > try: >>> >> > .... some initial stuff >>> >> > >>> >> > try: >>> >> > >>> >> > ... some stuff >>> >> > >>> >> > update_request_query = (db.INVITE_SIGNUP.email_id == >>> >> > request_email_id) >>> >> > >>> >> > >>> >> > >>> >>> db(update_request_query).update(activation_key=key,activation_url=activation_url) >>> >> > >>> >> > ... some other stuff >>> >> > >>> >> > except (Timeout,TransactionFailedError,InternalError), derr: >>> >> > logger.warn('Datastore exception for ID: '+ >>> >> > request_email_id +': '+ str(derr)) >>> >> > except (Error, Exception), ex: >>> >> > logger.error('Fatal Error: '+ request_email_id +': '+ >>> >> > str(ex)) >>> >> > >>> >> > The problem is that the update statement is not working on GAE. The >>> >> > fields >>> >> > which need to be updated are NULL and no error is thrown. >>> >> > From my observation, this is happening once a day approx around the >>> time >>> >> > when daily quota is reset. >>> >> > >>> >> > Am I doing something wrong here ? >>> >> > >>> >> > Thanks, >>> >> > Sushant >>> >> > >>> >> > >>> >> >>> >> -- >>> >> Carlos J. Costa >>> >> Cientista da Computação >>> >> Esp. Gestão em Telecom >>> >> >>> >> EL MELECH NEEMAN! >>> >> אָמֵן >>> >>> -- >>> Carlos J. Costa >>> Cientista da Computação >>> Esp. Gestão em Telecom >>> >>> EL MELECH NEEMAN! >>> אָמֵן >>> >>>