- // Try to push the update as a job so it can run later perhaps
- if ( $mode !== 'enqueue' && $update instanceof EnqueueableDataUpdate ) {
- try {
- $spec = $update->getAsJobSpecification();
- JobQueueGroup::singleton( $spec['wiki'] )->push( $spec['job'] );
- } catch ( Exception $e ) {
- MWExceptionHandler::rollbackMasterChangesAndLog( $e );
- }
- }
-