68 - Sync channel posts on setup for duplicate detection

This commit is contained in:
myrmidex 2026-02-26 01:38:38 +01:00
parent c75a1c8cf0
commit 71e7611e65
2 changed files with 5 additions and 1 deletions

View file

@ -3,6 +3,7 @@
namespace App\Livewire;
use App\Jobs\ArticleDiscoveryJob;
use App\Jobs\SyncChannelPostsJob;
use App\Models\Feed;
use App\Models\Language;
use App\Models\PlatformAccount;
@ -286,6 +287,9 @@ public function createChannel(): void
'updated_at' => now(),
]);
// Sync existing posts from this channel for duplicate detection
SyncChannelPostsJob::dispatch($channel);
$this->nextStep();
} catch (\Exception $e) {
$this->formErrors['general'] = 'Failed to create channel. Please try again.';

View file

@ -182,7 +182,7 @@
'defaults' => [
'supervisor-1' => [
'connection' => 'redis',
'queue' => ['default', 'publishing', 'feed-discovery'],
'queue' => ['default', 'publishing', 'feed-discovery', 'sync'],
'balance' => 'auto',
'autoScalingStrategy' => 'time',
'maxProcesses' => 1,