[Vtigercrm-developers] CronTask module

Joe Bordes joe at tsolucio.com
Thu Jun 20 14:12:25 UTC 2013


Thanks Stefan, but I REALLY prefer having a client call me to tell me 
they can't import because the import task hasn't been working for two 
days, and change a status column in the database, than to have a bunch 
of calls due to a saturated server and end up having to recover from a 
backup with the loss of some work :-(

Joe
TSolucio


On 20/06/13 15:07, Stefan Warnat wrote:
> Hy Joe,
>
> In my opinion it is not a bug, but a feature. ;)
> If a cronTab breaks with an error, the cronjob won't be started again, 
> because the running flag won't be reset.
>
> If you don't check every log of the CronTab Module you don't 
> recognize, that one Cronjob isn't running, which could be lead into 
> some other problems.
>
> Stefan
>
> Am 20.06.2013 14:29, schrieb Joe Bordes:
>> Hi,
>>
>> I just had an incident where a client launched a large import (12000 
>> products).
>> The cron launched the first time and marked the process as running.
>> After 15min, the next cron launched and the import process was 
>> launched again. Then after 15min more, another process was launched....
>>
>> After about 15000 products imported and taking forever the client 
>> contacted us.
>>
>> I had a look at the code and see that the status of running is not 
>> consulted only the frequency :-(
>>
>> The attached patch should fix this problem.
>>
>> I also compared the 5.4.0 CronTask module with the current EA to see 
>> if it had been corrected and saw that the problem is still there and 
>> that somebody has left a $log->fatal() debug message in the CronTask 
>> code. That should be eliminated from there.
>>
>>
>> These things make me think: over a year after this feature was 
>> introduced nobody commented nor fixed this? Is anybody really using 
>> this? Am I doing something wrong? ...
>>
>>
>>
>> _______________________________________________
>> http://www.vtiger.com/
>
>
>
> _______________________________________________
> http://www.vtiger.com/


-- 
Un saludo
Joe
TSolucio

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20130620/9a5d7601/attachment.html>


More information about the vtigercrm-developers mailing list