diff --git a/src/Model/Queue.php b/src/Model/Queue.php index 4a29c8aa4..8b9e801c3 100644 --- a/src/Model/Queue.php +++ b/src/Model/Queue.php @@ -32,7 +32,7 @@ class Queue // Calculate the delay until the next trial $delay = (($retrial + 3) ** 4) + (rand(1, 30) * ($retrial + 1)); - $next = DateTimeFormat::utc('now ' . $delay . ' seconds'); + $next = DateTimeFormat::utc('now + ' . $delay . ' seconds'); dba::update('queue', ['last' => DateTimeFormat::utcNow(), 'retrial' => $retrial + 1, 'next' => $next], ['id' => $id]); }