chore: Update cleanup command to use Redis instead of queue

This commit is contained in:
Andras Bacsai
2024-09-23 23:48:12 +02:00
parent 688c27c901
commit 57d8930f9e
11 changed files with 34 additions and 114 deletions

View File

@@ -13,7 +13,6 @@ use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\Middleware\WithoutOverlapping;
use Illuminate\Queue\SerializesModels;
class ScheduledTaskJob implements ShouldQueue
@@ -67,16 +66,6 @@ class ScheduledTaskJob implements ShouldQueue
return 'UTC';
}
public function middleware(): array
{
return [new WithoutOverlapping($this->task->id)];
}
public function uniqueId(): int
{
return $this->task->id;
}
public function handle(): void
{