From what I remember, 7.x-4.0-alpha14's computations were done automatically via the run.sh file after setting up cron (server, not Drupal). But it's missing in 7.x-6.0-alpha4, and I noticed that it's now a completely manual process:
1) For each sub-module, I need to first press the "Add Command" button each time before I run a computation.
2) I haven't successfully set up Drush or Java yet, but it seems like cron (Drupal, not server) doesn't do anything when I choose the "Together with Drupal Cron" option, unless I press the "Run Recommender" button to actually run a computation.
So here are my questions:
A) Will there be a feature where cron (Drupal or server) will automate the "Add Command" button so that it'll be pressed periodically for each sub-module?
B) Will there be a feature where cron (Drupal or server) will also automate the "Run Recommender" button so that it'll be pressed periodically?
C) If I set up Drush or Java, is any of the above currently automated yet?
Comments
Comment #1
jay.lee.bio commentedComment #2
danithaca commentedThere are 2 parts of the question:
First, about clicking "Add Command" on the Drupal side. It is complete up to the helper module to implement a "cron" logic so that you don't have to press "Add Command" button all the time. It's very simple to do so with the helper module. You need to create feature request issue on respective helper module page.
Second, about run the Java engine. You can create the "run.sh" script from the example "run.sh.example". Then you can setup the cron on the server with run.sh.
If you use the PHP engine, you can avoid setting up the Java engine and just run recommender in drush. Type "drush recommender-run", or set it up in cron.
I'll update this in README later.
Comment #3
jay.lee.bio commentedDanithaca, thanks for the quick reply.
1) Done for the two sub-modules that I'm currently using, Browsing History Recommender & Fivestar Recommender.
2) I found two "run.sh.example" files, one each from drupal-computing-7.x-2.x.zip & drupal-recommender-7.x-6.x.zip. I'll get back to you after playing around with them if I have more questions.
It also sounds like once I set up cron, I can use Drush to automate running computations using the PHP engine. But since using the Java engine is really the way to go, I probably won't bother with this one.