https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37552
Bug ID: 37552
Summary: Automatic renewals cronjob can die when an item
scheduled for renewal is checked in
Change sponsored?: ---
Product: Koha
Version: Main
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: Circulation
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected], [email protected]
We start the automatic_renewal cron by getting all the checkouts that might be
renewed
We then loop through and try to renew each. In a large system this can take
some time.
If during that time an item in the list is checked in the cronjob will die when
it tries to update the checkout. In my testing it only happens for items that
will not be renewed.
To recreate:
1 - Checkout an item to a patron and mark it for auto renewal
2 - Add 'sleep(10);' to the cronjob at line 194
3 - perl misc/cronjobs/automatic_renewals.pl -v -c
4 - Check the item in (quickly)
5 - The cron dies:
DBIx::Class::Row::update(): Can't update
Koha::Schema::Result::Issue=HASH(0x586e1a674fb0): row not found at
/kohadevbox/koha/Koha/Object.pm line 172
DBIx::Class::Row::update(): Can't update
Koha::Schema::Result::Issue=HASH(0x586e1a674fb0): row not found at
/kohadevbox/koha/Koha/Object.pm line 172
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
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/