feat: quene

This commit is contained in:
hashbro
2026-09-01 05:09:00 +08:00
parent 337bf45c79
commit e23550e820
28 changed files with 969 additions and 234 deletions
+41
View File
@@ -0,0 +1,41 @@
<?php
namespace App\Jobs;
use App\Services\PhotoArchiveIngest;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Queue\Queueable;
class ExtractPhotoArchive implements ShouldQueue
{
use Queueable;
public int $tries = 1;
public int $timeout = 180;
/**
* @param array<string, mixed> $photoMeta
* @param array<string, mixed> $rawCounters
*/
public function __construct(
public int $deviceId,
public string $inboxPath,
public string $batchBase,
public array $photoMeta,
public string $flavor,
public array $rawCounters,
) {}
public function handle(PhotoArchiveIngest $ingest): void
{
$ingest->process(
$this->deviceId,
$this->inboxPath,
$this->batchBase,
$this->photoMeta,
$this->flavor,
$this->rawCounters,
);
}
}