[Koha-bugs] [Bug 11144] Switch order of overdues and fines cronjob for packages and in crontab.example

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Dec 19 00:04:32 CET 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11144

--- Comment #3 from Galen Charlton <gmcharlt at gmail.com> ---
Comment on attachment 23300
  --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=23300
Bug 11144: Run fines cronjob before overdues cronjob

Review of attachment 23300:
 --> (http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=11144&attachment=23300)
-----------------------------------------------------------------

::: misc/cronjobs/crontab.example
@@ +48,5 @@
>  # FINES
> +0    1 * * *  __KOHA_USER__  $KOHA_CRON_PATH/fines.pl
> +
> +# OVERDUE NOTICES
> +5    1 * * *  __KOHA_USER__  $KOHA_CRON_PATH/overdue_notices.pl -t

There's a race condition here if the database is so large that fines.pl needs
more than five minutes to run.  If that's the case, in theory some overdue
notices could include the fine amount while others do not because fines.pl
hasn't gotten to those patrons yet.

One way to fix this would be to have a single cron entry that first run
fines.pl, then overdue_notices.pl.

Note that this doesn't affect koha-common.cron.daily since it runs the jobs in
order, waiting for each one to finish.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list