I agree with you that the snippet -1 is for reboot jobs. I think the
current bug is mainly caused by the other part:
if ctype=='ext':
go=False
Because I am using hard cron mode, so the "go=False" can never
execute, hence my daily cron job keeps running hourly. Hope you can
understand the situation.
Actually my current work around is simple and works for me. That is:
# if ctype=='ext': ### Don't use it at all
go = False
But I am not sure whether I miss something. That's why I am seeking
for help. Thanks!
On Sep17, 9:04pm, AchipA <[email protected]> wrote:
> IIRC in that particular code snippet -1 was deprecated in favor of the
> more standard @reboot keyword. I have not noticed such a bug, but will
> certainly check it out for a possible regression.
>
> On Sep 16, 4:23 pm, Iceberg <[email protected]> wrote:
>
>
>
> > Hi Achipa or Kacper,
>
> > I noticed that in gluon/contrib/cron.py rev1189, a pair of lines in
> > previous rev as:
>
> > if task['min'] > -1 or ctype == 'ext':
> > go = False
>
> > are changed into:
>
> > if ctype == 'ext':
> > go = False
>
> > Though I don't fully understand the purpose of the former, but at
> > least the latter causes a bug when using "hard" cron mode. My tasks
> > defined as "10 1 * * * blah" are still invoked hourly.
>
> > Hope above information is enough for reproduce the bug.
>
> > Sincerely,
> > Iceberg
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---