I have an action that fires when a node is changed. It sends mails.

When I update a node without this rule activated, it takes less time to finish. But, when the rule is present, it first executes the action, then finishes the update process.

I would prefer to finish the node update process first, and fire the action of the rule in background. I dont care if the mail is sent immedately. I can wait for 5-10 seconds after the node update process finishes.

Comments

GiorgosK’s picture

perhaps this module could be of help
http://drupal.org/project/rules_batch

Sinan Erdem’s picture

Cool. Thanks for the suggestion. I will try it as soon as possible.

GiorgosK’s picture

I am struggling also with core rules scheduler module but have not succeded with either module

rules scheduler is much more involved but I am following instructions here http://drupal.org/node/1068136

Sinan Erdem’s picture

I tried the Rules Batch Loop module. And it doesnt solve my problem. When using that module, after saving a node, a progres bar appears and executes actions. I really need the node save operation finishes, user sees the saved node, and in the background the rules are executed, the user doesnt see any output.

TR’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

There is no way a Rule action to send mail would take 5-10 seconds. If this is still a problem with the current version of Rules please export your Rule and post it here so we can see exactly what you're doing.