JobQueueGroup::singleton allows one to get the JobQueue group of any wiki. Most commonly, this is used to enqueue jobs for other wikis with JobQueueGroup::singleton( $another_wiki )->push( $job ). However, when selecting the queue onto which to push the job, JobQueueGroup's code accesses $wgJobTypeConf directly, which means that it is using the setting of the current wiki, instead of the wiki selected with JobQueueGroup::singleton( $wiki ). This creates problems in cases where a job type is using one queue for one wiki and a different one for another. This is a common pattern during the JobQueue transport migration to EventBus where we switch jobs selectively wiki-by-wiki or group-by-group, such as T193254: Global renames get stuck at metawiki.
|Resolved||Pchelolo||T157088 [EPIC] Develop a JobQueue backend based on EventBus|
|Resolved||Pchelolo||T190327 FY17/18 Q4 Program 8 Services Goal: Complete the JobQueue transition to EventBus|
|Invalid||None||T193471 JobQueueGroup's singletons using the wrong wgJobTypeConf|