Bugzilla – Attachment 61792 Details for
Bug 9988
Leave larger authority merges to merge_authorities cronjob (pref AuthorityMergeLimit)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9988: Add the cronjob and print an upgrade message
Bug-9988-Add-the-cronjob-and-print-an-upgrade-mess.patch (text/plain), 2.98 KB, created by
Marcel de Rooy
on 2017-04-03 08:32:02 UTC
(
hide
)
Description:
Bug 9988: Add the cronjob and print an upgrade message
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2017-04-03 08:32:02 UTC
Size:
2.98 KB
patch
obsolete
>From d2bc244e1d7599e283b2218c4f0e462d71dfcbc4 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Thu, 23 Feb 2017 12:23:36 +0100 >Subject: [PATCH] Bug 9988: Add the cronjob and print an upgrade message >Content-Type: text/plain; charset=utf-8 > >The Debian cron file and the misc crontab example are updated. >A message is printed when upgrading. > >Note: At this moment the merge cron job is run once a day. This is imo a >good starting point. The load for this job greatly depends on the value of >pref AuthorityMergeLimit. Of course you can schedule the job more often, >and if this need is felt more globally, we can adjust it later. > >Test plan: >[1] Run the dbrev and see the message. >[2] Read the changes to the cron files. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > debian/koha-common.cron.daily | 1 + > installer/data/mysql/atomicupdate/bug_9988c_cron.perl | 6 ++++++ > misc/cronjobs/crontab.example | 3 +++ > 3 files changed, 10 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug_9988c_cron.perl > >diff --git a/debian/koha-common.cron.daily b/debian/koha-common.cron.daily >index 92bfa58..0642e44 100644 >--- a/debian/koha-common.cron.daily >+++ b/debian/koha-common.cron.daily >@@ -26,4 +26,5 @@ koha-foreach --enabled /usr/share/koha/bin/cronjobs/services_throttle.pl > /dev/ > koha-foreach --enabled /usr/share/koha/bin/cronjobs/cleanup_database.pl --sessions --zebraqueue 10 --list-invites > koha-foreach --enabled --noemail /usr/share/koha/bin/cronjobs/cleanup_database.pl --mail > koha-foreach --enabled /usr/share/koha/bin/cronjobs/holds/auto_unsuspend_holds.pl > /dev/null 2>&1 >+koha-foreach --enabled /usr/share/koha/bin/cronjobs/merge_authorities.pl -b > koha-run-backups --days 2 --output /var/spool/koha >diff --git a/installer/data/mysql/atomicupdate/bug_9988c_cron.perl b/installer/data/mysql/atomicupdate/bug_9988c_cron.perl >new file mode 100644 >index 0000000..bedef31 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_9988c_cron.perl >@@ -0,0 +1,6 @@ >+$DBversion = 'XXX'; # will be replaced by the RM >+if( CheckVersion( $DBversion ) ) { >+ print "IMPORTANT NOTE: If you are not using a regular Debian install, please verify that you no longer use misc/migration_tools/merge_authority.pl in your cron files AND add misc/cronjobs/merge_authorities.pl to cron now. This job is no longer optional! You need it to perform larger authority merges.\n"; >+ SetVersion( $DBversion ); >+ print "Upgrade to $DBversion done (Bug 9988 - Cron alert)\n"; >+} >diff --git a/misc/cronjobs/crontab.example b/misc/cronjobs/crontab.example >index e1b4c1f..8cb0b17 100644 >--- a/misc/cronjobs/crontab.example >+++ b/misc/cronjobs/crontab.example >@@ -94,3 +94,6 @@ KOHA_CRON_PATH = /usr/share/koha/bin/cronjobs > > # share_usage_with_koha_community.pl every months > 0 0 1 * * __KOHA_USER__ $KOHA_CRON_PATH/share_usage_with_koha_community.pl >+ >+# run merge authorities >+20 1 * * * __KOHA_USER__ $KOHA_CRON_PATH/merge_authorities.pl -b >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 9988
:
59158
|
59159
|
60256
|
60257
|
60258
|
60259
|
60594
|
60595
|
60596
|
60597
|
60598
|
60599
|
60600
|
60601
|
60602
|
60603
|
60604
|
60605
|
60606
|
60607
|
60668
|
60669
|
60670
|
60671
|
60672
|
60673
|
60674
|
60675
|
61306
|
61307
|
61308
|
61309
|
61779
|
61780
|
61781
|
61782
|
61783
|
61784
|
61785
|
61786
|
61787
|
61788
|
61789
|
61790
|
61791
|
61792
|
61890
|
61891
|
61892
|
61893
|
61894
|
61895
|
61897
|
61898
|
61899
|
61900
|
61901
|
61902
|
61903
|
61904
|
61912
|
61913
|
61914
|
61915
|
61916
|
61917
|
61918
|
61919
|
61920
|
61921
|
61922
|
61923
|
61924
|
61925
|
62055
|
62123
|
62124
|
62125
|
62126
|
62127
|
62128
|
62129
|
62130
|
62131
|
62132
|
62133
|
62134
|
62135
|
62136
|
62137