Don't store the notice object for distrib queue handler, just id

This commit is contained in:
Mikael Nordfeldth 2016-01-07 20:24:59 +01:00
parent cd2695190d
commit 3eebf2a353

View File

@ -2403,8 +2403,11 @@ class Notice extends Managed_DataObject
// If there's a failure, we want to _force_ // If there's a failure, we want to _force_
// distribution at this point. // distribution at this point.
try { try {
$json = json_encode((object)array('id' => $this->getID(),
'type' => 'Notice',
));
$qm = QueueManager::get(); $qm = QueueManager::get();
$qm->enqueue($this, 'distrib'); $qm->enqueue($json, 'distrib');
} catch (Exception $e) { } catch (Exception $e) {
// If the exception isn't transient, this // If the exception isn't transient, this
// may throw more exceptions as DQH does // may throw more exceptions as DQH does