@sysconfdir@/action_trigger_filters.json
--run-pending
- Run pending events
+ Run pending events to send emails or take other actions as specified
+ by the reactor in the event definition.
--process-hooks
Create hook events
--hooks=hook1[,hook2,hook3,...]
Define which hooks to create events for. If none are defined,
it defaults to the list of hooks defined in the --custom-filters option.
+ Requires --process-hooks
--granularity=<label>
- Run events with {label} granularity setting, or no granularity setting
-
- --granularity-only
- Used in combination with --granularity, prevents the running of events with no granularity setting
+ Limit creating events and running pending events to those only
+ with <label> granularity setting.
--debug-stdout
Print server responses to stdout (as JSON) for debugging
--lock-file=<file_name>
Lock file
+ --verbose
+ Show details of script processing.
+
--help
Show this help
Examples:
- # To run all pending events. This is what you tell CRON to run at
- # regular intervals
+ # To run all pending events that have no granularity set. This is what
+ # you tell CRON to run at regular intervals
perl $0 --osrf-config @sysconfdir@/opensrf_core.xml --run-pending
# To batch create all "checkout.due" events
perl $0 --osrf-config @sysconfdir@/opensrf_core.xml --hooks=checkout.due --process-hooks
+ # To batch create all events for a specific granularity and to send notices for all pending
+ # events with that same granularity.
+ perl $0 --osrf-config @sysconfdir@/opensrf_core.xml --run-pending --granularity=Hourly --process-hooks
+
HELP
}
NOTE: For a busy institution that might have lots of overdue circulations (> 1000) you should take care to do this at some point in the day that won't disrupt other important processes on the utility box. This could take a while (hours, potentially).
-------------------------------------------------------
-/openils/bin/action_trigger_runner.pl --run-pending --process-hooks --granularity Telephony --granularity-only
+/openils/bin/action_trigger_runner.pl --run-pending --process-hooks --granularity Telephony
-------------------------------------------------------
When that command finishes, you should have some rows in your *action_trigger.event* table where the "event_def" column matches the ID of the telephony event definition you just set up and the "state" column is "complete".
-------------------------------------------------------
# Runs all pending telephony A/T events every half hour (offset by 10 min)
-10,40 * * * * . ~/.bashrc && /openils/bin/action_trigger_runner.pl --osrf-config /openils/conf/opensrf_core.xml --run-pending --process-hooks --granularity Telephony --granularity-only
+10,40 * * * * . ~/.bashrc && /openils/bin/action_trigger_runner.pl --osrf-config /openils/conf/opensrf_core.xml --run-pending --process-hooks --granularity Telephony
-------------------------------------------------------
Holidays