5 use Try::Tiny qw( catch try );
8 use C4::Log qw( cronlogaction );
11 use Koha::Script -cron;
15 my $logger = Koha::Logger->get();
16 if ( C4::Context->config("enable_plugins") ) {
17 my @plugins = Koha::Plugins->new->GetPlugins(
19 method => 'cronjob_nightly',
23 foreach my $plugin (@plugins) {
25 $plugin->cronjob_nightly();
36 plugins_nightly.pl - Run nightly tasks specified by plugins
44 Martin Renvoize <martin.renvoize@ptfs-europe.com>
48 This file is part of Koha.
50 Koha is free software; you can redistribute it and/or modify it
51 under the terms of the GNU General Public License as published by
52 the Free Software Foundation; either version 3 of the License, or
53 (at your option) any later version.
55 Koha is distributed in the hope that it will be useful, but
56 WITHOUT ANY WARRANTY; without even the implied warranty of
57 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
58 GNU General Public License for more details.
60 You should have received a copy of the GNU General Public License
61 along with Koha; if not, see <http://www.gnu.org/licenses>.