[TYPO3-dev] Scheduler task: Last run?

Philipp Gampe philipp.gampe at typo3.org
Mon Dec 10 18:46:45 CET 2012


Hi Marc,

Marc Wöhlken wrote:

> I can see that this behavior is desireable in cases where the execute()
> method fails but is there any alternative way to get a tasks last run
> time within the task itself?!

As the task object is saved serialized in DB, I suggest that you save the 
time of the last execution into an own variable. You can do so from within 
your execute() method.

Best regards
-- 
Philipp Gampe – PGP-Key 0AD96065 – TYPO3 UG Bonn/Köln
Documentation – linkvalidator
TYPO3 .... inspiring people to share!




More information about the TYPO3-dev mailing list