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: koha-bugs@lists.koha-community.org Reporter: nick@bywatersolutions.com QA Contact: testopia@bugs.koha-community.org CC: gmcharlt@gmail.com, kyle.m.hall@gmail.com 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.