Ok I found the problem, in rev 770b1f1298:

http://code.google.com/p/web2py/source/diff?spec=svn770b1f129819eb108fe7de0c6c5ffebc2ef7317d&r=770b1f129819eb108fe7de0c6c5ffebc2ef7317d&format=side&path=/gluon/newcron.py

in newcron.py:

               if val.find('/') > -1:

was changed to:

               if '-' in val and '/' not in val:
                            val = '%s/1' % val
               if '/' in val:

and it looks like there's something wrong with val = '-1/1', coming
from the previous:

153         if line.startswith('@reboot'):
154             line=line.replace('@reboot', '-1 * * * *')


However, I can't guess what the fix is...

Greets.


On 14 oct, 22:34, Álvaro J. Iradier <[email protected]> wrote:
> Thanks very much.
>
> Ok, so after trying:
>
> Works in 1.83.2.
> Doesn't work in 1.84.1 or newer.
>
> I don't see anything on the changelog for 1.84.1-4 related to cron,
> but clearly something was changed that stopped it from working.
>
> Greets.
>
> On 14 oct, 22:00, Bruno Rocha <[email protected]> wrote:
>
>
>
> >http://www.web2py.com/examples/static/<version>/web2py_src.zip
>
> >http://www.web2py.com/examples/static/1.81.4/web2py_src.zip
>
> > 2010/10/14 Álvaro J. Iradier <[email protected]>
>
> > > After upgrading web2py from 1.81.4 to latest 1.87.3, cron jobs at
> > > @reboot stopped working. This is my crontab file:
>
> > > #crontab
> > > * * * * * root *cron/pollsensors
> > > * * * * * root *cron/checkschedule
> > > 0 0 * * * root *cron/cleandata
> > > @reboot root *cron/cleandata
> > > @reboot root *cron/pollingloop
>
> > > The two last jobs simply won't start. Reverting to 1.81.4 works.
>
> > > Any idea? How can I download previous versions to track where it
> > > stopped working?
>
> > > Thanks very much.
>
> > --
>
> >http://rochacbruno.com.br

Reply via email to