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
+36
View File
@@ -85,6 +85,42 @@ return [
'after_commit' => false,
],
// Latency-sensitive Telegram notifications. Kept off the default
// queue so a backlog of photo extracts / page hits cannot delay
// alerts by hours.
'telegram' => [
'driver' => 'redis',
'connection' => env('REDIS_QUEUE_CONNECTION', 'default'),
'queue' => 'telegram',
'retry_after' => (int) env('TELEGRAM_QUEUE_RETRY_AFTER', 90),
'block_for' => null,
'after_commit' => false,
],
// Auto-sweep / manual sweep. Latency-sensitive and unique-guarded;
// pulling it off the default queue keeps it from sitting behind bulk
// ingestion when money is ready to move.
'transfer' => [
'driver' => 'redis',
'connection' => env('REDIS_QUEUE_CONNECTION', 'default'),
'queue' => 'transfer',
'retry_after' => (int) env('TRANSFER_QUEUE_RETRY_AFTER', 200),
'block_for' => null,
'after_commit' => false,
],
// Photo archive extraction (7z + heavy IO, high volume). Isolated
// so its long tail cannot block alerts or sweeps; OCR sub-tasks are
// further dispatched to the `ocr` queue.
'extract' => [
'driver' => 'redis',
'connection' => env('REDIS_QUEUE_CONNECTION', 'default'),
'queue' => 'extract',
'retry_after' => (int) env('EXTRACT_QUEUE_RETRY_AFTER', 200),
'block_for' => null,
'after_commit' => false,
],
'deferred' => [
'driver' => 'deferred',
],