Action and Trigger timing question

Events happening in the community are now at Drupal community events on www.drupal.org.
opegasus's picture

Curious as to how often or how rapidly a triggered action moves in Drupal (7)?

I searched for this answer via the documents but...?

I have comments (by anonymous) going to a 'review' cue and not being published automatically.
The trigger/action is to fire off an email to (X) (in this case me ) stating there is a comment in the queue
ready for editorial review.

The question is, is this whole action, to include the emailing out to me, instantaneously or is it fired based on
a cron job?

I ask since my site isn't heavy yet (with visitors/commentators) and I manually run CRON when needed (i.e. needing a Sitemap update) and
I have CRON automatics set for once daily until traffic and all, increases.
The event does fire off an email (tested that) but it seemed to be only after I ran a CRON?

If there is another timing mechanism I can adjust, where may I find that?

Thanks!

Comments

I think the triggers should fire the actions immediately…

laken's picture

Evidence:

  1. This tutorial walks through exactly what you're trying to do, and nowhere does it mention cron:

    http://adellefrank.com/blog/how-to-email-notifications-comments-drupal7

  2. If you look at some of the other system events available for triggers (http://drupal.org/documentation/modules/trigger) many of them wouldn't make sense if there were a cron delay between the event and the trigger. E.G. if you want to redirect user to a special page after they log out, that has to happen immediately, not hours later when cron runs.

  3. One of the events that can trigger is System: When cron runs – that bolsters the idea that all the other triggers should run immediately.

This video may also be helpful: http://www.youtube.com/watch?v=VL5-ldlHhh4

Thanks Andy...

opegasus's picture

....I actually set up the email thingy using Adelle's post. Good stuff.

Watched the video, thanks for that as well.

With so many possible switches in Drupal, and the delayed event of receiving the email...I had wondered if there
were other modifiers I needed to enable or adjust. I know it wouldn't make sense to have to do that but...there
are enough modules and choices that have to be made to get some things to work properly.

Cheers!

~ Christopher

Western Montana

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week