https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38156

            Bug ID: 38156
           Summary: Auto renew cron job mangles digest notices when
                    parallel processing is enabled
 Change sponsored?: ---
           Product: Koha
           Version: Main
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P5 - low
         Component: Command-line Utilities
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected]
        Depends on: 29507

When the automatic renewal cron job is running multiple loops simultaneously,
it aims to process all of the renewals for any given patron together in one
chunk, in order to avoid data conflicts. To accomplish this, it starts a new
data chunk each time it encounters a new patron.

However, in practice, all of a patron's checkouts for a given day might not end
up being consecutive in the database table if multiple patrons are using
different checkout stations at the same time. (Or if differing circulation
rules cause checkouts from different days to auto-renew at the same time.) If a
patron's checkouts are not all consecutive in the database, they will end up
being split over separate chunks.

This causes digest notices not to generate correctly - depending on how the
timing works out, a patron may get their renewals split over multiple digests,
some renewed items may be missing from digests, or the digest may not generate
at all.

Sorting the issues by borrowernumber before splitting them into chunks for
processing should solve this.


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29507
[Bug 29507] Speed up auto renew cronjob via parallel processing
-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://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