* http://www.gnu.org/copyleft/gpl.html
*
* @file
- * @author Aaron Schulz
*/
/**
/**
* Buffer jobs for insertion via push() or call it now if in CLI mode
*
- * Note that MediaWiki::restInPeace() calls pushLazyJobs()
+ * Note that pushLazyJobs() is registered as a deferred update just before
+ * DeferredUpdates::doUpdates() in MediaWiki and JobRunner classes in order
+ * to be executed as the very last deferred update (T100085, T154425).
*
* @param IJobSpecification|IJobSpecification[] $jobs A single Job or a list of Jobs
* @return void
* @since 1.26
*/
public function lazyPush( $jobs ) {
- if ( PHP_SAPI === 'cli' ) {
+ if ( PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg' ) {
$this->push( $jobs );
return;
}