Initialize database connection for scan persistence
(self)
| 502 | self._max_workers = min(caps.capabilities.cpu_cores, 8) |
| 503 | |
| 504 | # Database manager reference |
| 505 | self._db = None |
| 506 | self._init_database() |
| 507 | |
| 508 | # Recover any interrupted scans on startup |
| 509 | self._recover_interrupted_scans() |
| 510 | |
| 511 | # Watchdog thread: auto-starts ZAP and keeps it alive. |
| 512 | # ZAP is the memory-hungry exception among the scanners, so it only |
| 513 | # runs on server-class boards (see SystemCapabilities.zap_enabled) - |
| 514 | # don't spin up its ~1GB Java daemon on a 4GB Pi where the rest of the |
| 515 | # Advanced Vuln tab still works fine. |