mirror of https://github.com/pixelfed/pixelfed.git
Fix MovePipeline jobs
This commit is contained in:
parent
aff2545396
commit
a7efd20bbc
|
@ -48,7 +48,7 @@ class CleanupLegacyAccountMovePipeline implements ShouldQueue
|
||||||
public function middleware(): array
|
public function middleware(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
new WithoutOverlapping('process-move-cleanup-legacy-followers:'.$this->activity),
|
new WithoutOverlapping('process-move-cleanup-legacy-followers:'.$this->target),
|
||||||
(new ThrottlesExceptions(2, 5 * 60))->backoff(5),
|
(new ThrottlesExceptions(2, 5 * 60))->backoff(5),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -61,16 +61,6 @@ class CleanupLegacyAccountMovePipeline implements ShouldQueue
|
||||||
return now()->addMinutes(15);
|
return now()->addMinutes(15);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the middleware the job should pass through.
|
|
||||||
*
|
|
||||||
* @return array<int, object>
|
|
||||||
*/
|
|
||||||
public function middleware(): array
|
|
||||||
{
|
|
||||||
return [new WithoutOverlapping($this->target)];
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Execute the job.
|
* Execute the job.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -51,7 +51,7 @@ class UnfollowLegacyAccountMovePipeline implements ShouldQueue
|
||||||
public function middleware(): array
|
public function middleware(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
new WithoutOverlapping('process-move-undo-legacy-followers:'.$this->activity),
|
new WithoutOverlapping('process-move-undo-legacy-followers:'.$this->target),
|
||||||
(new ThrottlesExceptions(2, 5 * 60))->backoff(5),
|
(new ThrottlesExceptions(2, 5 * 60))->backoff(5),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -64,16 +64,6 @@ class UnfollowLegacyAccountMovePipeline implements ShouldQueue
|
||||||
return now()->addMinutes(15);
|
return now()->addMinutes(15);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the middleware the job should pass through.
|
|
||||||
*
|
|
||||||
* @return array<int, object>
|
|
||||||
*/
|
|
||||||
public function middleware(): array
|
|
||||||
{
|
|
||||||
return [new WithoutOverlapping($this->target)];
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Execute the job.
|
* Execute the job.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue