Ok here goes I've been trying with this for the past 24 hours to no avail. I am using the video upload module to allow users to upload videos (particularly their commercial ads) to my site which in turn is sent to youtube for processing then rendered on my site. However the video playback is only possible after cron is executed. The problem is rules seem to be the only option but I seem to have hit a road block I can't seem to get the action of run cron after content is saved. I do not want to wait until the next schedule cron to run for the videos to be updated. Please advise if this is possible and how. I'll be most grateful

Comments

Anonymous’s picture

Add an action "execute custom PHP code" and execute cron by PHP:

module_invoke_all('cron');

mitchell’s picture

Status: Active » Fixed
mitchell’s picture

Component: User interface » Rules Engine

Status: Fixed » Closed (fixed)

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

adit234’s picture

Status: Closed (fixed) » Active

hello there..

Thanks for the work you have done so far on this module.

that code (module_invoke_all('cron');) was for run cron for all of modules, isn't that right...?
what if i want to run cron only for one module, ex: node module...?

sorry for some idiotic question, i'm still newbie in drupal and php....:D

thanks
adit

firfin’s picture

Component: Rules Engine » Rules Core
Status: Active » Closed (works as designed)

Question does not seem related to Original Post. Which was answered adequately.
usage of module_invoke_all is not really a question about Rules anyway.

Please open another issue (I think in general/drupal thread might be best) if you still have problems after reading https://api.drupal.org/api/drupal/includes!module.inc/function/module_in...