mirror of
https://github.com/yogeshojha/rengine.git
synced 2026-10-21 07:41:28 +02:00
Setup now shows worker queues and the six downloaded datasets with live status and Download/Retry, connects bug bounty platforms with a key test, sets out-of-band testing, and groups API keys by what each adds. Every dataset loader holds its own advisory lock and records its run in one ledger; the check library loads at worker boot and the boot check covers NVD. The syncing mark no longer clears the NVD version stamp. Claude-Session: https://claude.ai/code/session_01RNWvizArgonaoqdBs1XhyF
28 lines
643 B
Python
28 lines
643 B
Python
"""Worker queues and the compose service that consumes each."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from dataclasses import dataclass
|
|
|
|
from shared.definitions.constants import (
|
|
CRITICAL_QUEUE,
|
|
DEFAULT_QUEUE,
|
|
SCAN_CONTROL_QUEUE,
|
|
SCANS_QUEUE,
|
|
)
|
|
|
|
|
|
@dataclass(frozen=True)
|
|
class QueueSpec:
|
|
name: str
|
|
label: str
|
|
service: str
|
|
|
|
|
|
QUEUES: tuple[QueueSpec, ...] = (
|
|
QueueSpec(SCAN_CONTROL_QUEUE, "Scan control", "worker-control"),
|
|
QueueSpec(SCANS_QUEUE, "Scan stages", "worker-scans"),
|
|
QueueSpec(DEFAULT_QUEUE, "Background jobs", "worker-default"),
|
|
QueueSpec(CRITICAL_QUEUE, "Toolbox", "worker-default"),
|
|
)
|