Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Koha Cronjobs

4,671 views

Published on

The presentation will have two parts. The first will enumerate the various scheduled jobs (cronjobs) that your Koha system should be running, and the options available for each, including: Advanced Notices, Long Overdues, Overdue Notices, Fines, Message Queue Processing, and Zebra Indexing. The second part of the session will briefly explain what goes into writing a good cronjob, with a look at some examples and perl modules you can use to help. - Joe Atzberger

Published in: Technology, Education
  • Be the first to comment

Koha Cronjobs

  1. 1. Koha Cronjobs Joe Atzberger, LibLime KohaCon 2009: Plano, TX
  2. 2. misc/cronjobs/ • advance_notices.pl • crontab.example • fines.pl • longoverdue.pl • overdue_notices.pl • process_message_queue.pl • ... and others
  3. 3. rebuild_zebra.pl misc/migration_tools/rebuild_zebra.pl • -a: authorities • -b: biblios • -x: XML • -z: incremental • -r: CLEAR and REBUILD from scratch
  4. 4. Remember! • export PERL5LIB=/path/to/kohaclone • export KOHA_CONF=/path/to/koha- conf.xml
  5. 5. Any idiot could give this presentation.
  6. 6. Any idiot could give this presentation. Allow me to demonstrate!
  7. 7. Any idiot could give this presentation. Allow me to demonstrate!
  8. 8. Any idiot could give this presentation. Allow me to demonstrate! All the info comes from two places:
  9. 9. Any idiot could give this presentation. Allow me to demonstrate! All the info comes from two places: • crontab.example
  10. 10. Any idiot could give this presentation. Allow me to demonstrate! All the info comes from two places: • crontab.example • run: whatever_job.pl
  11. 11. Any idiot could give this presentation. Allow me to demonstrate! All the info comes from two places: • crontab.example • run: whatever_job.pl • or: whatever_job.pl --help
  12. 12. Any idiot could give this presentation. Allow me to demonstrate! All the info comes from two places: • crontab.example • run: whatever_job.pl • or: whatever_job.pl --help • OK, well, not everything.
  13. 13. fines.pl • No help • No command-line options either • sysprefs: finesMode, CircControl • staff: fines rules, Calendar! • TIP: run fines before notices
  14. 14. advance_notices.pl • Like overdue notices, but before due • “EnhancedMessagingPreferences” syspref • Opt-In for individual patrons via OPAC
  15. 15. Building a good cronjob • Documentation for use case! • Good perl: use strict; use warnings; • use Getopt::Long; # handle --options • use Pod::Usage; # makes --help like perldoc • internalize, like process_message_queue.pl • test cases, dry run, operational feedback
  16. 16. The End

×