[Vtigercrm-developers] CronTask module

Stefan Warnat ich at stefanwarnat.de
Thu Jun 20 13:07:23 UTC 2013


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/

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


More information about the vtigercrm-developers mailing list