We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit be5f9ca0 authored by CiaranG's avatar CiaranG

Stop daemons using 100% CPU and hammering the DB server when the queue is...

Stop daemons using 100% CPU and hammering the DB server when the queue is empty (DBQueueManager-based only)
parent 38d70f13
......@@ -88,7 +88,9 @@ class DBQueueManager extends QueueManager
do {
$qi = Queue_item::top($queue);
if (!empty($qi)) {
if (empty($qi)) {
sleep(1);
} else {
$notice = Notice::staticGet('id', $qi->notice_id);
if (!empty($notice)) {
$result = $notice;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment