projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
699eb4c
)
rejig process
author
Alan
<alan@roojs.com>
Wed, 9 Aug 2023 09:31:16 +0000
(17:31 +0800)
committer
Alan
<alan@roojs.com>
Wed, 9 Aug 2023 09:31:16 +0000
(17:31 +0800)
Notify.php
patch
|
blob
|
history
diff --git
a/Notify.php
b/Notify.php
index
8c176a6
..
505c82a
100644
(file)
--- a/
Notify.php
+++ b/
Notify.php
@@
-288,20
+288,26
@@
class Pman_Core_Notify extends Pman
}
}
+ if (!empty($this->next_queue)) {
+ $this->logecho("REQUEUING all emails that maxed out:" . count($this->next_queue));
+ foreach($this->next_queue as $p) {
+ $pp = clone($p);
+ $p->act_when = $p->sqlValue('NOW + INTERVAL 1 MINUTE');
+ $this->updateServer($p);
+ $p->update($pp);
+
+ }
+ }
+
+ $this->logecho("QUEUE COMPLETE - waiting for pool to end");
// we should have a time limit here...
while(count($this->pool)) {
$this->poolfree();
sleep(3);
}
// we should have a time limit here...
while(count($this->pool)) {
$this->poolfree();
sleep(3);
}
- foreach($this->next_queue as $p) {
- $pp = clone($p);
- $p->act_when = $p->sqlValue('NOW + INTERVAL 1 MINUTE');
- $this->updateServer($p);
- $p->update($pp);
-
- }
+
$this->logecho("DONE");
$this->logecho("DONE");