Last modified: 2014-04-13 11:21:44 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T62698, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 60698 - Job Queue handling does not work for shared code (wiki farms)
Job Queue handling does not work for shared code (wiki farms)
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
JobQueue (Other open bugs)
1.22.0
All All
: High major with 2 votes (vote)
: 1.23.0 release
Assigned To: Aaron Schulz
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-31 21:24 UTC by T. Gries
Modified: 2014-04-13 11:21 UTC (History)
9 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description T. Gries 2014-01-31 21:24:49 UTC
The patch https://gerrit.wikimedia.org/r/108740 is not correct for all cases.

When you have a shared core code (the core code especially the code of
/maintenance being shared by using the symbolic link method for more than one
wiki) the present patch is wrong, because it does not indicate, which Wiki's
job queue is treated.

The present code only runs "php runJobs.php", it missing something like

"php runJobs.php --conf=<path-to-localsettings-of-the-present-wiki>"

I hope, you understand what I mean.

I detected this problem when running the E:ReplaceText (latest git version)
together with latest git version of core, i.e. dated 2014-01-31.
Comment 1 T. Gries 2014-01-31 21:26:40 UTC
This bug has been filed as new bug spawned from https://bugzilla.wikimedia.org/show_bug.cgi?id=58719 (solved).
Comment 2 Ryan Schmidt 2014-02-24 16:19:26 UTC
To add, simply adding another flag for --conf will not properly fix this bug, you'll need to allow for complete customization of the command line used (different farms use different methods, --conf may work for one wiki, --wiki might work for another, yet another might be expecting a SERVER_NAME env variable, another may have added their own custom flag, etc.).

See also bug 61367, which asks for a $wg variable to disable spawning a PHP CLI process without having to set the cli php path to an invalid value (thus potentially breaking other things).
Comment 3 Gerrit Notification Bot 2014-02-27 19:18:09 UTC
Change 113038 merged by jenkins-bot:
Moved job running via $wgJobRunRate to a special API

https://gerrit.wikimedia.org/r/113038
Comment 4 T. Gries 2014-02-27 23:14:14 UTC
(In reply to Gerrit Notification Bot from comment #3)
> Change 113038 merged by jenkins-bot:
> Moved job running via $wgJobRunRate to a special API
> 
> https://gerrit.wikimedia.org/r/113038


Thanks for reporting and committing a patch!

At the moment, I cannot decide whether this patch solves this issue, or not.
Comment 5 Jesús Martínez Novo (Ciencia Al Poder) 2014-04-13 11:21:44 UTC
It should be fixed in the next 1.23 release (current master).

In Gerrit change #118336 it was moved from api to an unlisted special page.

Since it loads the correct settings for the current wiki, it should work now. Marking as resolved.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links