projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4ad7b71
)
try and shift next server in fixed time
author
Alan
<alan@roojs.com>
Fri, 13 Oct 2023 06:23:38 +0000
(14:23 +0800)
committer
Alan
<alan@roojs.com>
Fri, 13 Oct 2023 06:23:38 +0000
(14:23 +0800)
Notify.php
patch
|
blob
|
history
diff --git
a/Notify.php
b/Notify.php
index
4f645af
..
5ed6a7b
100644
(file)
--- a/
Notify.php
+++ b/
Notify.php
@@
-293,11
+293,14
@@
class Pman_Core_Notify extends Pman
$black = $this->server->isBlacklisted($email);
if ($black !== false) {
$black = $this->server->isBlacklisted($email);
if ($black !== false) {
-
+ $this->logecho("Blacklisted - try giving it to next server");
if (false === $this->server->updateNotifyToNextServer($p)) {
$ev = $this->addEvent('NOTIFY', $p, 'BLACKLISTED FROM our DB');
if (false === $this->server->updateNotifyToNextServer($p)) {
$ev = $this->addEvent('NOTIFY', $p, 'BLACKLISTED FROM our DB');
- $this->server->updateNotifyToNextServer($w, strtotime('NOW + 5 MINUTES'),true);
+ // we dont have an althenative server to update it with.
+ $this->logecho("Blacklisted - next server did not work - try again in 30 mins");
+ $this->server->updateNotifyToNextServer($w, date("Y-m-d H:i:s", strtotime('NOW + 30 MINUTES')),true);
// $this->errorHandler( $ev->remarks);
// $this->errorHandler( $ev->remarks);
+
}
continue;
}
continue;
@@
-609,6
+612,7
@@
class Pman_Core_Notify extends Pman
function clearOld()
{
if ($this->server->isFirstServer()) {
function clearOld()
{
if ($this->server->isFirstServer()) {
+
$p = DB_DataObject::factory($this->table);
$p->whereAdd("
sent < '2000-01-01'
$p = DB_DataObject::factory($this->table);
$p->whereAdd("
sent < '2000-01-01'