From: Bill Erickson Date: Thu, 16 Mar 2017 15:46:06 +0000 (-0400) Subject: LP#1672775 Action/Trigger CRON-able purge script X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ea536c71dedfaf9b97067e2da60e63a80be103fb;p=Evergreen.git LP#1672775 Action/Trigger CRON-able purge script Installs a new purge_at_events.sh script into the Evergreen bin directory. Invoked at regular intervals to remove expired events. Signed-off-by: Bill Erickson Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/Makefile.am b/Open-ILS/src/Makefile.am index 09a643928c..253e8ab840 100644 --- a/Open-ILS/src/Makefile.am +++ b/Open-ILS/src/Makefile.am @@ -67,6 +67,7 @@ core_scripts = $(examples)/oils_ctl.sh \ $(supportscr)/juv_to_adult.srfsh \ $(supportscr)/thaw_expired_frozen_holds.srfsh \ $(supportscr)/long-overdue-status-update.pl \ + $(supportscr)/purge_at_events.srfsh \ $(supportscr)/purge_holds.srfsh \ $(supportscr)/purge_circulations.srfsh \ $(supportscr)/purge_pending_users.srfsh \ diff --git a/Open-ILS/src/support-scripts/purge_at_events.srfsh b/Open-ILS/src/support-scripts/purge_at_events.srfsh new file mode 100755 index 0000000000..f14b287658 --- /dev/null +++ b/Open-ILS/src/support-scripts/purge_at_events.srfsh @@ -0,0 +1,7 @@ +#!/openils/bin/srfsh +open open-ils.cstore +request open-ils.cstore open-ils.cstore.transaction.begin +request open-ils.cstore open-ils.cstore.json_query {"from":["action_trigger.purge_events"]} +request open-ils.cstore open-ils.cstore.transaction.commit +close open-ils.cstore +