mirror of
https://github.com/friendica/friendica
synced 2025-04-26 01:10:15 +00:00
Use deferred workers instead of the queue mechanism
This commit is contained in:
parent
a5828734f7
commit
e3caf0f4f5
2 changed files with 9 additions and 14 deletions
|
@ -17,6 +17,7 @@ use Friendica\Protocol\Diaspora;
|
|||
use Friendica\Protocol\Email;
|
||||
use Friendica\Util\Strings;
|
||||
use Friendica\Util\Network;
|
||||
use Friendica\Core\Worker;
|
||||
|
||||
class Delivery extends BaseObject
|
||||
{
|
||||
|
@ -321,8 +322,8 @@ class Delivery extends BaseObject
|
|||
Logger::log('Delivery to ' . $contact['url'] . ' with guid ' . defaults($target_item, 'guid', $target_item['id']) . ' returns ' . $deliver_status);
|
||||
|
||||
if ($deliver_status < 0) {
|
||||
Logger::log('Delivery failed: queuing message ' . defaults($target_item, 'guid', $target_item['id']));
|
||||
Model\Queue::add($contact['id'], Protocol::DFRN, $atom, false, $target_item['guid']);
|
||||
Logger::info('Delivery failed: defer message', ['id' => defaults($target_item, 'guid', $target_item['id'])]);
|
||||
Worker::defer();
|
||||
}
|
||||
|
||||
if (($deliver_status >= 200) && ($deliver_status <= 299)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue