mirror of
https://github.com/friendica/friendica
synced 2025-04-25 17:50:11 +00:00
More cooldown calls for worker processes
This commit is contained in:
parent
3f3e1a2bf4
commit
0fa281247d
8 changed files with 58 additions and 19 deletions
|
@ -22,6 +22,7 @@
|
|||
namespace Friendica\Protocol\ActivityPub;
|
||||
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\Worker;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\DI;
|
||||
use Friendica\Model\Contact;
|
||||
|
@ -55,6 +56,7 @@ class Delivery
|
|||
Logger::notice('Inbox delivery has a server failure', ['inbox' => $inbox]);
|
||||
$serverfail = true;
|
||||
}
|
||||
Worker::coolDown();
|
||||
}
|
||||
|
||||
if ($serverfail || (!$result['success'] && !$result['drop'])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue