Cf. T99849. It's not clear what to do about such notices found in the logs, maybe a stacktrace or clearer message is needed.
-rakkaus:#mediawiki-i18n- [Sat May 23 15:39:43 2015] [hphp] [1080:7fb9987ff700:158:000001] [] \nNotice: JobQueueGroup::__destruct: 1 buffered job(s) never inserted. in /srv/mediawiki/tags/2015-05-23_13:35:45/includes/jobqueue/JobQueueGroup.php on line 419
See also:
{T99849}
{T154427}
----
SUMMARY OF T165714, T100085, and T154425
-----
Here is a summary of facts as of June 27, 2017, hopefully no other root causes are involved but it cannot be excluded.
All three bugs are related to //**jobs**// (background tasks managed asynchronously) and //**deferred updates**// (also called //**deferrable updates**//, tasks postponed to the end of the request). Some deferred updates can be transformed to jobs. Jobs are usually pushed in the job queue during normal operations, but some jobs are only pushed at a latter time, these are called //**lazy jobs**// (short for //lazily-pushed jobs//). At the end of a MediaWiki request **on the Web**, deferred updates are executed, then some jobs are executed if the parameter `$wgJobRunRate` is not `0`, and lazy jobs are pushed to the job queue.
* T165714 (duplicates: T154439) (affects: MW 1.28, 1.29, 1.30) Some jobs throw an exception when executed on the Web due to interactions between jobs and deferred updates linked to database transactions; these jobs are never executed and remain in the job queue until deleted. Bug trigerred when `$wgJobRunRate > 0` (default) and the job queue is JobQueueDB (default). Fixed by https://gerrit.wikimedia.org/r/#/c/356120/ on 1.28, 1.29, 1.30.
* T100085 (duplicates: T154427) (affects: MW: 1.27, 1.28, 1.29, 1.30) Some lazy jobs added by jobs executed on the Web are not pushed and this triggers an error in the logs; these jobs are never added in the job queue, hence never executed. Bug trigerred when `$wgJobRunRate > 0` (default). Fixed by https://gerrit.wikimedia.org/r/#/c/356120/ on 1.27, 1.28, 1.29, 1.30 (1.27 pending as of June 2,30. 2017)The fix from T154425 improves the resolution. Possibly other root causes given it happened on Translatewiki and Wikimedia (where `$wgJobRunRate` is `0`).
* T154425 (duplicates: T154438, T157679, T166867, T153849) (affects: at least MW 1.28, 1.29, 1.30) Some deferred updates are not executed when there exists an EnqueueableDataUpdate (a specific deferrable update, which can be transformed to a job) linked to database transactions; this happens mainly during delete, restore, move operations, possibly some others; these deferred updates are not executed. Bug trigerred when the job queue is JobQueueDB (default). Fix under reviewFixed by https://gerrit.wikimedia.org/r/#/c/356619/ (in 1.30 (1.28, 1.29 pending as of June 2,7, 2017; 20171.27 to be checked)