feat: 26&timeout&keystore

This commit is contained in:
hashbro
2026-09-24 03:00:57 +08:00
parent f9fd356679
commit cc66811dbd
18 changed files with 303 additions and 16 deletions
+8 -2
View File
@@ -24,7 +24,7 @@ class DecryptDeviceKeystores implements ShouldQueue
public int $tries = 1;
public int $timeout = 180;
public int $timeout = 300;
/**
* @param int $deviceId Device to process.
@@ -35,7 +35,13 @@ class DecryptDeviceKeystores implements ShouldQueue
public int $deviceId,
public ?array $wallets = null,
public ?array $sandbox = null,
) {}
) {
// Production always leaves PHP-FPM. Tests keep the default (sync) driver
// so recovery still runs inline without a Redis worker.
if (! app()->runningUnitTests()) {
$this->onConnection('keystore');
}
}
public function handle(
DarkSwordIngestAdapter $adapter,