Don't store the notice object for distrib queue handler, just id
This commit is contained in:
parent
cd2695190d
commit
3eebf2a353
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user