Search code examples
typo3extbasetypo3-extensions

TYPO3 scheduler task with Extbase


When creating a scheduler task with Extbase CommandController, how can I tell the scheduler extension that a task failed? When creating tasks with scheduler (without Extbase), this is done with "return false", but this has no effect in tasks with Extbase CommandController.


Solution

  • You can throw an Exception. That will mark the scheduler task as failed.