Out-of-the-box, Drupal comes with a cron-run-trigger, but no actions that can actually be fired by this trigger; I think an administrator should at least be able to have a site send him/her an email after a cron run (might even help troubleshooting cron problems).
Patch attached makes it possible to assign the "Send e-mail..."-action to the cron run trigger. This patch does require #246096: Cron triggers are not executed to land first, since cron run triggers are not fired correctly at the moment.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | cron-run-D6.patch | 719 bytes | andypost |
| #7 | cron-run-D6.patch | 641 bytes | andypost |
| cron-trigger-needs-action.patch | 658 bytes | mr.baileys |
Comments
Comment #1
mr.baileysComment #2
mr.baileysComment #4
mr.baileysPossible testbot failure, requesting a re-test.
Comment #5
cburschkaEasy one-liner, this looks ready.
Comment #6
dries commentedI committed this but we'll need to finish #246096: Cron triggers are not executed still. Thanks!
Comment #7
andypostIt's easy to backport
Comment #8
andypostPrevious patch was not unified
Comment #9
andypostWaiting for #246096: Cron triggers are not executed
Comment #10
andypost#246096: Cron triggers are not executed landed, so needs review
Comment #11
gábor hojtsyThis is a feature request, and features only go to Drupal 7. Also, I doubt it makes much sense to send a stock email on each cron run. Usually, sites I've seen run their cron at least hourly, but more like 15-30 minutes.
Moving back to 7.x fixed.
Comment #12
andypost@Gábor Hojtsy strange, suppose it's a bug - we have trigger but but we cant use it out of box....
So in someone need to send email on cron run should place this code in own module