evergreen-user:action_trigger
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
evergreen-user:action_trigger [2012/01/04 17:41] – [Event Definitions] edoceo | evergreen-user:action_trigger [2012/08/03 14:17] – atr example edoceo | ||
---|---|---|---|
Line 128: | Line 128: | ||
This allows one to define key/value type data which becomes available during the processing of the trigger (Validator, Reactor). | This allows one to define key/value type data which becomes available during the processing of the trigger (Validator, Reactor). | ||
+ | |||
+ | ===== Processing Action Triggers ===== | ||
+ | |||
+ | When events occur records are created in the action_trigger.event table and these events are processed by the action_trigger_runner.pl script. | ||
+ | |||
+ | < | ||
+ | # General A/T | ||
+ | */2 * * * * action_trigger_runner.pl --process-hooks --run-pending | ||
+ | |||
+ | # Run Specific Granularity Only | ||
+ | 20 20 * * * action_trigger_runner.pl --run-pending --granularity Daily-Active-Report --granularity-only | ||
+ | |||
+ | # Just do these hooks | ||
+ | 21 21 * * * action_trigger_runner.pl --run-pending --hooks=checkout | ||
+ | |||
+ | # Example with Wrapper | ||
+ | 4 4 * * * / | ||
+ | </ | ||
+ | |||
+ | It's not uncommon to have dozens of entries in the crontab for Evergreen. | ||
+ | |||
+ | < | ||
+ | #!/bin/bash | ||
+ | # I'm some documentation on this script! | ||
+ | # Run holds available, only the daily-hold granularity | ||
+ | |||
+ | / | ||
+ | --debug-stdout \ | ||
+ | --verbose \ | ||
+ | --run-pending \ | ||
+ | --hooks=hold.available \ | ||
+ | --granularity=Daily-Hold \ | ||
+ | --granularity-only \ | ||
+ | >/ | ||
+ | 2>/ | ||
+ | |||
+ | logger --id --tag atr " | ||
+ | </ | ||
evergreen-user/action_trigger.txt · Last modified: 2022/02/10 13:34 by 127.0.0.1