[TYPO3-english] Get last execution time in Scheduler task

Philipp Gampe philipp.gampe at typo3.org
Thu Feb 4 11:21:34 CET 2016


Hi Michal,

Michal Cygankiewicz wrote:

> Is there a way to get last execution time inside currently executed
> Scheduler task?
> 
> I am running Scheduler task like that:
> 
> class Tx_MyExt_Command_CacheCommandController extends
> Tx_Extbase_MVC_Controller_CommandController {

There is no direct way to get this information, because the scheduler object 
is not passed down to the command controller.

However you can save the value yourself, for example the the core registry.

Best regards
-- 
Philipp Gampe – PGP-Key 0AD96065 – TYPO3 UG Bonn/Köln
Certified Integrator – Active contributor TYPO3 CMS
TYPO3 .... inspiring people to share!



More information about the TYPO3-english mailing list