#109812Scheduler Tasks throw errors on finalizing
Description
When running solr in production with TYPO3 v14.3, I get this error:
Mon, 11 May 2026 11:02:11 +0200 [CRITICAL] request="612a78c16a0ef" component="TYPO3.CMS.Core.Error.DebugExceptionHandler": Core: Exception handler (CLI: FE): TypeError, code #0, file vendor/typo3/cms-core/Classes/DataHandling/DataHandler.php, line 458: Cannot assign null to property TYPO3\CMS\Core\DataHandling\DataHandler::$BE_USER of type TYPO3\CMS\Core\Authentication\BackendUserAuthentication- TypeError: Cannot assign null to property TYPO3\CMS\Core\DataHandling\DataHandler::$BE_USER of type TYPO3\CMS\Core\Authentication\BackendUserAuthentication, in file vendor/typo3/cms-core/Classes/DataHandling/DataHandler.php:458 - {"mode":"CLI","application_mode":"FE","exception_class":"TypeError","exception_code":0,"file":"vendor/typo3/cms-core/Classes/DataHandling/DataHandler.php","line":458,"message":"Cannot assign null to property TYPO3\\CMS\\Core\\DataHandling\\DataHandler::$BE_USER of type TYPO3\\CMS\\Core\\Authentication\\BackendUserAuthentication","request_url":"http:///bin/typo3","exception":"TypeError: Cannot assign null to property TYPO3\\CMS\\Core\\DataHandling\\DataHandler::$BE_USER of type TYPO3\\CMS\\Core\\Authentication\\BackendUserAuthentication in vendor/typo3/cms-core/Classes/DataHandling/DataHandler.php:458\nStack trace:\n#0 vendor/typo3/cms-scheduler/Classes/Domain/Repository/SchedulerTaskRepository.php(116): TYPO3\\CMS\\Core\\DataHandling\\DataHandler->start(Array, Array)\n#1 vendor/typo3/cms-scheduler/Classes/Scheduler.php(142): TYPO3\\CMS\\Scheduler\\Domain\\Repository\\SchedulerTaskRepository->updateExecution(Object(ApacheSolrForTypo3\\Solr\\Task\\IndexQueueWorkerTask), false)\n#2 vendor/typo3/cms-scheduler/Classes/Command/SchedulerCommand.php(254): TYPO3\\CMS\\Scheduler\\Scheduler->executeTask(Object(ApacheSolrForTypo3\\Solr\\Task\\IndexQueueWorkerTask))\n#3 vendor/typo3/cms-scheduler/Classes/Command/SchedulerCommand.php(189): TYPO3\\CMS\\Scheduler\\Command\\SchedulerCommand->executeOrStopTask(Object(ApacheSolrForTypo3\\Solr\\Task\\IndexQueueWorkerTask))\n#4 vendor/typo3/cms-scheduler/Classes/Command/SchedulerCommand.php(123): TYPO3\\CMS\\Scheduler\\Command\\SchedulerCommand->loopTasks()\n#5 vendor/symfony/console/Command/Command.php(341): TYPO3\\CMS\\Scheduler\\Command\\SchedulerCommand->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#6 vendor/symfony/console/Application.php(1117): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#7 vendor/symfony/console/Application.php(356): Symfony\\Component\\Console\\Application->doRunCommand(Object(TYPO3\\CMS\\Scheduler\\Command\\SchedulerCommand), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#8 vendor/symfony/console/Application.php(195): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#9 vendor/typo3/cms-core/Classes/Console/CommandApplication.php(113): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#10 vendor/typo3/cms-cli/typo3(23): TYPO3\\CMS\\Core\\Console\\CommandApplication->run()\n#11 vendor/typo3/cms-cli/typo3(24)