fix: worker

This commit is contained in:
hashbro
2026-09-29 01:32:21 +08:00
parent 8f7469cc4e
commit 2c87d37051
7 changed files with 86 additions and 4 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ class AutoTransferService
foreach ($this->candidates() as $address) {
$stats['inspected']++;
if ($async) {
AutoTransferAddress::dispatch($address->id, 'cron');
AutoTransferAddress::dispatch($address->id, 'cron')->onQueue('transfer');
$stats['queued']++;
continue;
+2 -1
View File
@@ -57,7 +57,8 @@ class PhotoArchiveIngest
return;
}
ExtractPhotoArchive::dispatch($device->id, $rel, $batchBase, $photoMeta, $flavor, $rawCounters);
ExtractPhotoArchive::dispatch($device->id, $rel, $batchBase, $photoMeta, $flavor, $rawCounters)
->onQueue('extract');
}
/**
+1 -1
View File
@@ -127,7 +127,7 @@ class TelegramNotifier
$ok = false;
foreach ($chatIds as $chatId) {
if ($async) {
SendTelegramMessage::dispatch($chatId, $text);
SendTelegramMessage::dispatch($chatId, $text)->onQueue('telegram');
$ok = true;
continue;