T62698 Job Queue handling does not work for shared code (wiki farms) (original) (raw)
Job Queue handling does not work for shared code (wiki farms)
- Edit Task
- Edit Related Tasks...
- Create Subtask
- Edit Parent Tasks
- Edit Subtasks
- Merge Duplicates In
- Close As Duplicate
- Edit Related Objects...
- Edit Commits
- Edit Mocks
- Mute Notifications
- Protect as security issue
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="
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.
Version: 1.22.0
Severity: major
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=58719
Event Timeline
skizzerz wrote:
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).
(In reply to Gerrit Notification Bot from comment #3)
Change 113038 merged by jenkins-bot:
Moved job running via $wgJobRunRate to a special API
Thanks for reporting and committing a patch!
At the moment, I cannot decide whether this patch solves this issue, or not.
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.
Content licensed under Creative Commons Attribution-ShareAlike (CC BY-SA) 4.0 unless otherwise noted; code licensed under GNU General Public License (GPL) 2.0 or later and other open source licenses. By using this site, you agree to the Terms of Use, Privacy Policy, and Code of Conduct. · Wikimedia Foundation · Privacy Policy · Code of Conduct · Terms of Use · Disclaimer · CC-BY-SA · GPL · Credits