wip
This commit is contained in:
@@ -5,13 +5,14 @@ namespace App\Jobs;
|
||||
use App\Models\Application;
|
||||
use App\Models\Server;
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Contracts\Queue\ShouldBeUnique;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Foundation\Bus\Dispatchable;
|
||||
use Illuminate\Queue\InteractsWithQueue;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
class ContainerStatusJob implements ShouldQueue
|
||||
class ContainerStatusJob implements ShouldQueue, ShouldBeUnique
|
||||
{
|
||||
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
||||
|
||||
@@ -19,6 +20,10 @@ class ContainerStatusJob implements ShouldQueue
|
||||
public string|null $container_id = null,
|
||||
) {
|
||||
}
|
||||
public function uniqueId(): string
|
||||
{
|
||||
return $this->container_id;
|
||||
}
|
||||
public function handle(): void
|
||||
{
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user