The job runner or cron are two separate solutions: For the job runner, both services take a command line option '--config-file=/path/to/my/config'. You can clone the repository to just about anywhere, and start them up. These services run as a daemon and will continuously run. That also means they need to start on boot, and need to be restarted if they fall over. For a single wiki this might be overkill.
The other option is, as you suggested, to call runJobs.php from cron. This is simpler and will probably work fine for you as long as the wiki is not particularly busy. I suppose a third option would be to continue with $wgJobRunRate > 0. If your server is running either php5-fpm or hhvm mediawiki will do extra handling like running jobs after closing the connection to the user. On Mon, Sep 28, 2015 at 4:06 PM, Temlakos <[email protected]> wrote: > I think I see what you mean: I can keep the configuration file in the > MediaWiki directory and not in /etc as the Phabricator entry suggested. > > All right, what directory do I "clone" jobrunner into, and how often > should I set up cron to run it? > > Temlakos > > > On 09/28/2015 07:02 PM, Erik Bernhardson wrote: > >> You will not need root access, but you will need shell access to run the >> job runner service. In theory you should be able to just put runJobs in >> cron, the job runner will just run things sooner and with more parallelism >> (if necessary). >> >> On Mon, Sep 28, 2015 at 3:58 PM, Temlakos <[email protected]> wrote: >> >> That sounds like something a root-access admin needs to install. I've >>> asked quite enough favors of my Web hosts without adding another one. Are >>> you sure this is the only way to get jobs run when setting #wgJobRunRate >>> to >>> zero? Why shouldn't I set up a cron job to run every hour on the hour? >>> >>> Temlakos >>> >>> >>> On 09/28/2015 06:43 PM, Erik Bernhardson wrote: >>> >>> I think what you are looking for is the job runner service. This is >>>> available at: >>>> >>>> https://phabricator.wikimedia.org/diffusion/GJOB/ >>>> >>>> >>>> Both the redisJobChronService, which handles delayed jobs, and the >>>> redisJobRunnerService, which handles jobs ready to run need to be used. >>>> >>>> >>>> On Mon, Sep 28, 2015 at 3:02 PM, Temlakos <[email protected]> wrote: >>>> >>>> What's this instruction all about, on the page: >>>> >>>>> >>>>> >>>>> >>>>> https://www.mediawiki.org/wiki/Manual:Wiki_family#Multiple_wikis_sharing_common_resources >>>>> >>>>> They're telling me to set $wgJobRunRate to zero. But they don't say >>>>> whether it should stay that way permanently. Now if it does, that means >>>>> one >>>>> of us has to get into the Secure Shell, cd to maintenance, and execute >>>>> php >>>>> runJobs.php at least once every twenty-four hours. Or more frequently. >>>>> >>>>> To whomever wrote that part of the manual (this is about installing a >>>>> family of wikis sharing media resources): are you sure you want to tell >>>>> wikifamily admins to do that? Or to set up a big cron job to execute a >>>>> bash >>>>> script? If so, how often would you recommend that, and at what time >>>>> (say, >>>>> with reference to UTC or to the most likely anticipated geographical >>>>> cluster of users)? >>>>> >>>>> Temlakos >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> MediaWiki-l mailing list >>>>> To unsubscribe, go to: >>>>> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l >>>>> >>>>> _______________________________________________ >>>>> >>>> MediaWiki-l mailing list >>>> To unsubscribe, go to: >>>> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l >>>> >>>> >>> _______________________________________________ >>> MediaWiki-l mailing list >>> To unsubscribe, go to: >>> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l >>> >>> _______________________________________________ >> MediaWiki-l mailing list >> To unsubscribe, go to: >> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l >> > > > _______________________________________________ > MediaWiki-l mailing list > To unsubscribe, go to: > https://lists.wikimedia.org/mailman/listinfo/mediawiki-l > _______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
