Hello,
think this should have an easy fix....
I'm trying to make workflow-ng execute the cron.php
I need to run cron every time a certain node type has been submitted, so i provided an action with workflow that starts when a node is submitted, with the type condition and then i used custom php code to execute cron.
What i've done is just copy and paste the cron.php content and i think this is not correct...'cause the action it's not working
What should i use as php code to execute cron inside a workflow-ng configuration?
Thanks
Da.

Comments

waffle’s picture

Maybe put just drupal_cron_run() in your action function? I think that's all you should need, but I'm not 100% sure on that...

You should probably make sure your action is even running at all. In your action function, if you put some other code in there (write a line to watchdog, whatever), does it log the line to watchdog?

It might be more helpful if you could show us your code for the hook_action_info / action function itself, and your configuration rule.

christefano’s picture

Status: Active » Fixed

This was committed a while ago in commit #130352.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.