Don't use a delivery interval when using the worker
This commit is contained in:
parent
0a2c161230
commit
7edce8e266
4 changed files with 13 additions and 1 deletions
|
@ -60,6 +60,10 @@ function queue_run(&$argv, &$argc){
|
|||
|
||||
$interval = ((get_config('system','delivery_interval') === false) ? 2 : intval(get_config('system','delivery_interval')));
|
||||
|
||||
// If we are using the worker we don't need a delivery interval
|
||||
if (get_config("system", "worker"))
|
||||
$interval = false;
|
||||
|
||||
$r = q("select * from deliverq where 1");
|
||||
if($r) {
|
||||
foreach($r as $rr) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue