On Monday, December 16, 2013 2:46:00 AM UTC+2, Massimo Di Pierro wrote: > > Do you user virtual fields? Are you doing migrations while the scheduler > tasks are running. This is strange because it is a very fundamental piece > of web2py code that has not changed in long time: >> >> >> Massimo, thanks for your reply!
No migration is done at all. No virtual fields as well. What I forgot to tell is that when it used to work, it was NOT run as a scheduled task, it was run within a controller. I also find this very very strange -- the "return int(self.cursor.fetchone()[0])" should always work once the record has been inserted. Also, It breaks at a random record -- it is different each time. Seems like the MySQL server gets confused somehow ... Can it be a memory problem? Or the VM system is not syncing properly? Just shooting in the dark. Any clue anyone? Thanks! Yassen -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.