@@ -, +, @@ processing https://github.com/bywatersolutions/fs-koha-plugin-contracts or the Koha Advent plugin: https://gitlab.com/koha-community/koha-advent/koha-plugin-fancyplugin DBI Exception: DBD::mysql::st execute failed: Lock wait timeout exceeded; try restarting transaction --- Koha/BackgroundJob.pm | 7 +++++++ 1 file changed, 7 insertions(+) --- a/Koha/BackgroundJob.pm +++ a/Koha/BackgroundJob.pm @@ -26,6 +26,7 @@ use C4::Context; use Koha::DateUtils qw( dt_from_string ); use Koha::Exceptions; use Koha::Exceptions::BackgroundJob; +use Koha::Plugins; use base qw( Koha::Object ); @@ -164,6 +165,12 @@ sub process { return {} if ref($self) ne 'Koha::BackgroundJob'; + # Our background jobs are called in forked processes + # to ensure we have all plugin hooks and data we call + # get_enabled_plugins at the star of processing + # to populate the cache + Koha::Plugins->get_enabled_plugins(); + my $derived_class = $self->_derived_class; $args ||= {}; --