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
1 changed files with 4 additions and 1 deletions

View File

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