forked from mirror/pixelfed
Update AP deliver job
This commit is contained in:
parent
d7d47ca132
commit
c817d4cfda
1 changed files with 3 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
namespace App\Jobs\StatusPipeline;
|
namespace App\Jobs\StatusPipeline;
|
||||||
|
|
||||||
use Cache;
|
use Cache, Log;
|
||||||
use App\Status;
|
use App\Status;
|
||||||
use Illuminate\Bus\Queueable;
|
use Illuminate\Bus\Queueable;
|
||||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||||
|
@ -94,8 +94,10 @@ class StatusActivityPubDeliver implements ShouldQueue
|
||||||
$pool = new Pool($client, $requests, [
|
$pool = new Pool($client, $requests, [
|
||||||
'concurrency' => config('pixelfed.ap_delivery_concurrency'),
|
'concurrency' => config('pixelfed.ap_delivery_concurrency'),
|
||||||
'fulfilled' => function ($response, $index) {
|
'fulfilled' => function ($response, $index) {
|
||||||
|
Log::info('AP:deliver:success - ' . $response);
|
||||||
},
|
},
|
||||||
'rejected' => function ($reason, $index) {
|
'rejected' => function ($reason, $index) {
|
||||||
|
Log::info('AP:deliver:rejected - ' . $reason);
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
$promise = $pool->promise();
|
$promise = $pool->promise();
|
||||||
|
|
Loading…
Reference in a new issue