Issue Feature Closed

#49071SchedulerTask: Rethrow exceptions in task execution

Alexander Opitz 06/12/13, 18:13 updated 10/19/17, 21:14

Description

If a task throws an exception, TYPO3\CMS\Extbase\Scheduler\Task catch it, log it and returns false.

As the Scheduler TYPO3\CMS\Scheduler\Scheduler handles exceptions in executeTask and shows the message of the exception in the backend and handles writing to log hisself, Extbase shouldn’t return false. As the Scheduler uses at atm $GLOBALS[‘BE_USER’]->writelog() and not \TYPO3\CMS\Core\Utility\GeneralUtility::sysLog() for logging, I would prefer to log self and rethrow the exception.

Would like to see this in 6.2 and 6.1.

Reviews 2