Oddly enough I actually had this happen this past weekend. I have a daily task that sends plant status update emails and the view template that renders the email body was choking because of an unexpected dividide by zero. The first day after the bad data was entered the scheduled run did simply fail when it hit that record and stop. However, the next day it did just keep trying over and over again and by the time I checked my email it had run several hundred times and I had a thousand plus emails from the part of the scheduler task prior to location with the error. I have had this sort of thing happen a few other times as well.
Brian On Wednesday, February 3, 2016 at 1:43:26 PM UTC-6, Niphlod wrote: > > it really doesn't change that much if it's bad code or good one, it's > executed in web2py env that traps the exception. Unless you're overriding > multiprocessing, datetime, etc etc etc (but this is just shooting really > high with the fantasy) the whole scheduler would die (not just the task) > but in that case you won't see it marked as failed and surely the > times_failed counter wouldn't go up. > > On Wednesday, February 3, 2016 at 5:51:35 PM UTC+1, Alex wrote: >> >> yeah, it's very unusual. This only happened a few times in the last 4 >> years for me. But one of the reasons is that it only occurs when the task >> raises an exception or runtime error. Usually my tasks run fine but a few >> times I deployed "bad" code with failed tasks. And when the task fails it's >> not so uncommon anymore. >> >> On Tuesday, February 2, 2016 at 9:31:39 PM UTC+1, Tim Richardson wrote: >>> >>> >>>>> But of course it would be good to know what's going on here and why >>>>> this can happen. >>>>> >>>> >>> Must be unusual. I've been doing something similar for about two years >>> over various web2py versions (on windows and ubuntu) and haven't seen this >>> behaviour. >>> >> -- 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/d/optout.