[TYPO3-dev] Scheduler task: Last run?
Marc Wöhlken
woehlken at quadracom.de
Mon Dec 10 19:09:48 CET 2012
Hello Philipp!
Am 10.12.2012 18:46, schrieb Philipp Gampe:
> 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.
This sounds good but I can not find the correct value. An example output
of the serailized info is:
'O:36:"tx_qcommmforumnewsletter_fetch_posts":18:{s:2:"db";s:0:"";s:4:"mail";s:18:"xxxxx at quadracom.de";s:7:"subject";s:40:"XXXXX-Benutzergruppe
Forum -
Neuigkeiten";s:8:"template";s:45:"EXT:qcom_mmforum_newsletter/res/template.html";s:11:"markerArray";a:0:{}s:10:"recipients";a:0:{}s:10:"
* taskUid";i:4;s:11:" * disabled";b:0;s:12:" *
execution";O:22:"tx_scheduler_Execution":6:{s:8:" *
start";i:1353970800;s:6:" * end";s:0:"";s:11:" *
interval";i:999999999;s:11:" * multiple";s:1:"0";s:10:" *
cronCmd";s:0:"";s:23:" * isNewSingleExecution";b:0;}s:16:" *
executionTime";i:2353970799;s:4:"pids";s:1:"9";s:5:"debug";N;s:10:"debug_mail";s:21:"xxxxxxxx at quadracom.de";s:12:"debug_enable";i:1;s:9:"fe_groups";a:1:{i:0;s:1:"1";}s:16:"fe_groups_ignore";N;s:4:"crop";i:300;s:9:"mail_name";s:20:"XXXXX-Benutzergruppe";}'
This translates to:
object(__PHP_Incomplete_Class)#1 (19) {
["__PHP_Incomplete_Class_Name"]=>
string(36) "tx_qcommmforumnewsletter_fetch_posts"
["db"]=>
string(0) ""
["mail"]=>
string(18) "xxxxx at quadracom.de"
["subject"]=>
string(40) "XXXXX-Benutzergruppe Forum - Neuigkeiten"
["template"]=>
string(45) "EXT:qcom_mmforum_newsletter/res/template.html"
["markerArray"]=>
array(0) {
}
["recipients"]=>
array(0) {
}
[" * taskUid"]=>
int(4)
[" * disabled"]=>
bool(false)
[" * execution"]=>
object(__PHP_Incomplete_Class)#2 (7) {
["__PHP_Incomplete_Class_Name"]=>
string(22) "tx_scheduler_Execution"
[" * start"]=>
int(1353970800)
[" * end"]=>
string(0) ""
[" * interval"]=>
int(999999999)
[" * multiple"]=>
string(1) "0"
[" * cronCmd"]=>
string(0) ""
[" * isNewSingleExecution"]=>
bool(false)
}
[" * executionTime"]=>
int(2353970799)
["pids"]=>
string(1) "9"
["debug"]=>
NULL
["debug_mail"]=>
string(21) "xxxxxxxx at quadracom.de"
["debug_enable"]=>
int(1)
["fe_groups"]=>
array(1) {
[0]=>
string(1) "1"
}
["fe_groups_ignore"]=>
NULL
["crop"]=>
int(300)
["mail_name"]=>
string(20) "XXXXX-Benutzergruppe"
}
The executionTime looked promising at first but that timestamp
translates to some date in 2044...
Any ideas?
Regards
Marc
--
...........................................................
Marc Wöhlken TYPO3 certified integrator
Quadracom - Proffe & Wöhlken
Rembertistraße 32 WWW: http://www.quadracom.de
D-28203 Bremen E-Mail: woehlken at quadracom.de
______________ PGP-Key: http://pgp.quadracom.de
More information about the TYPO3-dev
mailing list