fix: worker
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user