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

Commit 1a0e17fe authored by mattl's avatar mattl

Minor queue fixes, probably not very important. Preparing for cron

parent 0a93fa68
......@@ -44,7 +44,7 @@ class DBQueueManager extends QueueManager
$qi->created = common_sql_now();
$result = $qi->insert();
if (!$result) {
if ($result === false) {
common_log_db_error($qi, 'INSERT', __FILE__);
throw new ServerException('DB error inserting queue item');
}
......
......@@ -67,6 +67,9 @@ abstract class QueueManager extends IoManager
self::$qm = new UnQueueManager();
} else {
switch ($type) {
case 'cron':
self::$qm = new GNUsocialCron();
break;
case 'db':
self::$qm = new DBQueueManager();
break;
......
......@@ -37,7 +37,7 @@ require_once INSTALLDIR.'/scripts/commandline.inc';
$daemons = array();
$daemons[] = INSTALLDIR.'/scripts/queuedaemon.php';
#$daemons[] = INSTALLDIR.'/scripts/queuedaemon.php';
if (Event::handle('GetValidDaemons', array(&$daemons))) {
foreach ($daemons as $daemon) {
......
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