[OPEN-ILS-DEV] Action/Trigger Setup 2.0.10

Peters, Michael MRPeters at library.IN.gov
Wed Sep 12 10:51:41 EDT 2012


Just in case it's helpful, here are our A/T cron jobs...


# ENVIRONMENT:

# First, establish Evergreen ENV variables.

#

OPENILS=/openils

SRF_CORE=/openils/conf/opensrf_core.xml

EG_BIN_DIR=/openils/bin



# Action/Trigger entries ----



# Runs all pending A/T events every half hour

*/30 * * * * . ~/.bashrc && $EG_BIN_DIR/action_trigger_runner.pl --osrf-config $SRF_CORE --run-pending >/dev/null 2>&1



# Passive A/T event generation.

# Note: push these back to 2am so they will run after the fine generator and spread out the start minute to reduce dogpiling

*/2 * * * * . ~/.bashrc && $EG_BIN/action_trigger_runner.pl --osrf-config $SRF_CORE --run-pending >/dev/null 2>&1

*/3 * * * *   . ~/.bashrc && $EG_BIN_DIR/action_trigger_runner.pl --osrf-config $SRF_CORE --process-hooks --run-pending --granularity 3min --granularity-only >/dev/null 2>&1

0 * * * *   . ~/.bashrc && $EG_BIN_DIR/action_trigger_runner.pl --osrf-config $SRF_CORE --process-hooks --run-pending --granularity Hourly --granularity-only >/dev/null 2>&1

10 2 * * 1-5 . ~/.bashrc && $EG_BIN_DIR/action_trigger_runner.pl --osrf-config $SRF_CORE --process-hooks --run-pending --granularity Weekdays --granularity-only >/dev/null 2>&1

15 2 * * 0   . ~/.bashrc && $EG_BIN_DIR/action_trigger_runner.pl --osrf-config $SRF_CORE --process-hooks --run-pending --granularity Weekly --granularity-only >/dev/null 2>&1

20 2 1 * *   . ~/.bashrc && $EG_BIN_DIR/action_trigger_runner.pl --osrf-config $SRF_CORE --process-hooks --run-pending --granularity Monthly --granularity-only >/dev/null 2>&1

25 2 1 1 *   . ~/.bashrc && $EG_BIN_DIR/action_trigger_runner.pl --osrf-config $SRF_CORE --process-hooks --run-pending --granularity Yearly --granularity-only >/dev/null 2>&1



# Daily A/T Events scattered to try to improve performance.



25 1 * * *   . ~/.bashrc && $EG_BIN_DIR/action_trigger_runner.pl --osrf-config $SRF_CORE --process-hooks --run-pending --granularity Daily-3day --granularity-only >/dev/null 2>&1

35 1 * * *   . ~/.bashrc && $EG_BIN_DIR/action_trigger_runner.pl --osrf-config $SRF_CORE --process-hooks --run-pending --granularity Daily-28day --granularity-only >/dev/null 2>&1

45 5 * * *   . ~/.bashrc && $EG_BIN_DIR/action_trigger_runner.pl --osrf-config $SRF_CORE --process-hooks --run-pending --granularity Daily-30day --granularity-only >/dev/null 2>&1

55 1 * * *   . ~/.bashrc && $EG_BIN_DIR/action_trigger_runner.pl --osrf-config $SRF_CORE --process-hooks --run-pending --granularity Daily-7day --granularity-only >/dev/null 2>&1

5 2 * * *   . ~/.bashrc && $EG_BIN_DIR/action_trigger_runner.pl --osrf-config $SRF_CORE --process-hooks --run-pending --granularity Daily-14day --granularity-only >/dev/null 2>&1

15 2 * * *   . ~/.bashrc && $EG_BIN_DIR/action_trigger_runner.pl --osrf-config $SRF_CORE --process-hooks --run-pending --granularity Daily-0day --granularity-only >/dev/null 2>&1

25 2 * * *   . ~/.bashrc && $EG_BIN_DIR/action_trigger_runner.pl --osrf-config $SRF_CORE --process-hooks --run-pending --granularity Daily-Lost --granularity-only >/dev/null 2>&1

35 2 * * *   . ~/.bashrc && $EG_BIN_DIR/action_trigger_runner.pl --osrf-config $SRF_CORE --process-hooks --run-pending --granularity Daily --granularity-only >/dev/null 2>&1


Sincerely,
Michael Peters
Indiana State Library MIS | Inspire.IN.gov Helpdesk | Evergreen Indiana Helpdesk
office - 317.234.2128
email - mrpeters at library.in.gov<mailto:mrpeters at library.in.gov>

From: open-ils-dev-bounces at list.georgialibraries.org [mailto:open-ils-dev-bounces at list.georgialibraries.org] On Behalf Of Peters, Michael
Sent: Wednesday, September 12, 2012 10:49 AM
To: Evergreen Development Discussion List
Subject: Re: [OPEN-ILS-DEV] Action/Trigger Setup 2.0.10

It concerns me that you had to manually add that path.  I don't think we ever had to do that.

Makes me think you may have some environment variables, or maybe the /etc/ld.so.conf/osrf.conf stuff missing?

Sincerely,
Michael Peters
Indiana State Library MIS | Inspire.IN.gov Helpdesk | Evergreen Indiana Helpdesk
office - 317.234.2128
email - mrpeters at library.in.gov<mailto:mrpeters at library.in.gov>

From: open-ils-dev-bounces at list.georgialibraries.org [mailto:open-ils-dev-bounces at list.georgialibraries.org] On Behalf Of Geoff Sams
Sent: Tuesday, September 11, 2012 5:20 PM
To: Evergreen Development Discussion List
Subject: [OPEN-ILS-DEV] Action/Trigger Setup 2.0.10

Okay, I am having some trouble with this, and unfortunately I have limited experience with the innards of this system.  I won't lie, I'm a novice at this at best.

I am trying to setup action/trigger events for the first time in our system and having very little luck with this.  I have the staff client administration side of things handled, it is the server side that is killing me right now.

Currently, I am trying to run the perl script just once to make certain that it works and I keep getting the help output or nothing at all.  When I attempt to run the script with --debug-stdout I get the help output and nothing else, if I try to run it with osrf-config I get the help file, and if I try either process-hooks or run-pending I get nothing at all.

At first I had to go in and add openils/lib/perl5 to the file so that it could find fieldmapper.pm and once I got that working, this was all the result I've gotten.  As much digging as I've had to do over the past few days just to get this far, I was hoping some kind soul would be able to point me in a better direction.

Thanks,
Geoff Sams
Roanoke Public Library
817-491-2691

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://libmail.georgialibraries.org/pipermail/open-ils-dev/attachments/20120912/59ce1742/attachment-0001.htm>


More information about the Open-ils-dev mailing list