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

--- Comment #3 from Galen Charlton <gmcha...@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.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to