Getter/Setter for queue
This commit is contained in:
parent
866dbf9f89
commit
0bbe954316
5 changed files with 47 additions and 32 deletions
|
@ -62,7 +62,7 @@ class Expire
|
|||
$r = DBA::p("SELECT `uid`, `username` FROM `user` WHERE `expire` != 0");
|
||||
while ($row = DBA::fetch($r)) {
|
||||
Logger::info('Calling expiry', ['user' => $row['uid'], 'username' => $row['username']]);
|
||||
Worker::add(['priority' => $a->queue['priority'], 'created' => $a->queue['created'], 'dont_fork' => true],
|
||||
Worker::add(['priority' => $a->getQueueValue('priority'), 'created' => $a->getQueueValue('created'), 'dont_fork' => true],
|
||||
'Expire', (int)$row['uid']);
|
||||
}
|
||||
DBA::close($r);
|
||||
|
@ -70,7 +70,7 @@ class Expire
|
|||
Logger::notice('calling hooks');
|
||||
foreach (Hook::getByName('expire') as $hook) {
|
||||
Logger::info('Calling expire', ['hook' => $hook[1]]);
|
||||
Worker::add(['priority' => $a->queue['priority'], 'created' => $a->queue['created'], 'dont_fork' => true],
|
||||
Worker::add(['priority' => $a->getQueueValue('priority'), 'created' => $a->getQueueValue('created'), 'dont_fork' => true],
|
||||
'Expire', 'hook', $hook[1]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue