if (empty($opts['limit'])) {
$opts['limit'] = '1000'; // not sure why it's not picking up the defautl..
}
- $showold = !empty($opts['old']);
+
if (!empty($opts['old'])) {
$opts['list'] = 1; // force listing..
}
$o = $w->object();
- $this->logecho("$w->id : $w->person_id_email email : ".
+ $this->logecho("{$w->id} : {$w->person()->email} email : ".
$o->toEventString()." ". $w->status() );
}
exit;
sleep(3);
continue;
}
- if ($this->poolHasDomain($p->person_id_email) > $this->max_to_domain) {
+ if ($this->poolHasDomain($p->person()->email) > $this->max_to_domain) {
if ($pushed === false) {
// we only try once to requeue..
}
- $this->run($p->id,$p->person_id_email);
+ $this->run($p->id,$p->person()->email);
'cmd' => $cmd,
'email' => $email,
'pipes' => $pipes,
+ 'notify_id' => $id,
'started' => time()
$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');
+ $w->act_when = date('Y-m-d H:i:s', strtotime('NOW + 30 MINUTES'));
+ $w->update($ww);
+
+
continue;
}