mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 14:31:26 +00:00
Update MovePipeline
This commit is contained in:
parent
5cc34b161b
commit
15a4e53382
2 changed files with 14 additions and 9 deletions
|
@ -10,22 +10,25 @@ use DB;
|
|||
use Exception;
|
||||
use GuzzleHttp\Client;
|
||||
use GuzzleHttp\Pool;
|
||||
use GuzzleHttp\Psr7\Request;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Foundation\Queue\Queueable;
|
||||
use Illuminate\Queue\Middleware\ThrottlesExceptionsWithRedis;
|
||||
use Illuminate\Queue\Middleware\WithoutOverlapping;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use GuzzleHttp\Psr7\Request;
|
||||
|
||||
class MoveMigrateFollowersPipeline implements ShouldQueue
|
||||
{
|
||||
use Queueable;
|
||||
|
||||
public string $target;
|
||||
|
||||
public string $activity;
|
||||
|
||||
public int $tries = 15;
|
||||
|
||||
public int $maxExceptions = 5;
|
||||
|
||||
public int $timeout = 900;
|
||||
|
||||
public function __construct(string $target, string $activity)
|
||||
|
@ -76,7 +79,7 @@ class MoveMigrateFollowersPipeline implements ShouldQueue
|
|||
Log::error('MoveMigrateFollowersPipeline failed', [
|
||||
'target' => $this->target,
|
||||
'activity' => $this->activity,
|
||||
'error' => $e->getMessage()
|
||||
'error' => $e->getMessage(),
|
||||
]);
|
||||
throw $e;
|
||||
}
|
||||
|
|
|
@ -21,9 +21,11 @@ class UnfollowLegacyAccountMovePipeline implements ShouldQueue
|
|||
use Queueable;
|
||||
|
||||
public string $target;
|
||||
|
||||
public string $activity;
|
||||
|
||||
public int $tries = 6;
|
||||
|
||||
public int $maxExceptions = 3;
|
||||
|
||||
public function __construct(string $target, string $activity)
|
||||
|
@ -66,7 +68,7 @@ class UnfollowLegacyAccountMovePipeline implements ShouldQueue
|
|||
Log::error('UnfollowLegacyAccountMovePipeline failed', [
|
||||
'target' => $this->target,
|
||||
'activity' => $this->activity,
|
||||
'error' => $e->getMessage()
|
||||
'error' => $e->getMessage(),
|
||||
]);
|
||||
throw $e;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue