Tryton - Issues

 

Message47704

Author albertca
Recipients admin, ced
Date 2019-03-17.22:20:50
Content
Missatge de Cédric Krier <bugs@tryton.org> del dia ds., 16 de març 2019 a
les 19:56:

>
> New submission from Cédric Krier <cedric.krier@b2ck.com>:
>
> The cron definition is complex. It does not allow to be sure when a task
> will be run. It has unused feature like number calls, repeat etc. It can be
> simplified for issue2286 and issue6117.
> And it is not sure that it is 100% safe (string define model, function and
> arguments).
>
> So I propose to simplify it by:
>
> - remove unused features
>

We're using the "repeat" feature, although only in one case, AFAIK. We use
it to send an e-mail of the changes in the last 24 hours in the records of
a given table. As we know repeat missing is set, we can be sure the summary
e-mail will be sent even if the cron process is stopped just when it had to
be sent.

> - allow to set the minute, hour and day (depending on the frequency)
> - use a selection field to define all possible "jobs"
> - remove arguments (all current job have no arguments)
>

The rest of changes look good to me.

>
> ----------
> assignedto: ced
> component: trytond
> messages: 47678
> nosy: ced
> priority: feature
> status: in-progress
> title: Simplify cron and allow to run at fixed time
> type: feature request
>
> ______________________________________
> Tryton issue tracker <bugs@tryton.org>
> <https://bugs.tryton.org/issue8201>
> ______________________________________
>
History
Date User Action Args
2019-03-17 22:20:50albertcasetrecipients: + ced
2019-03-17 22:20:50albertcalinkissue8201 messages
2019-03-17 22:20:50albertcacreate

Showing 10 items. Show all history (warning: this could be VERY long)