projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90848d2
)
Notify.php
author
Alan Knowles
<alan@roojs.com>
Thu, 29 Jan 2015 08:45:33 +0000
(16:45 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 29 Jan 2015 08:45:33 +0000
(16:45 +0800)
Notify.php
patch
|
blob
|
history
diff --git
a/Notify.php
b/Notify.php
index
51c262c
..
a6c847e
100644
(file)
--- a/
Notify.php
+++ b/
Notify.php
@@
-393,6
+393,14
@@
class Pman_Core_Notify extends Pman
$this->logecho("TERMINATING: ({$p['pid']}) " . $p['cmd'] . " : " . file_get_contents($p['out']));
@unlink($p['out']);
+ $w = DB_DataObject::factory($this->table);
+ $w->get($p['notify_id']);
+ $ww = clone($w);
+ $this->addEvent('NOTIFY', $w, 'TERMINATED - TIMEOUT' . $errmsg);
+ $w->act_when = date('Y-m-d H:i:s', strtotime('NOW + 30 MINUTES'));
+ $w->update($ww);
+
+
continue;
}