Files
rengine/shared/definitions/workers.py
T
Yogesh Ojha a1524c1673 feat(onboarding): data, platforms and out-of-band steps; one ledger for every dataset
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
2026-09-27 10:15:50 +05:30

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"),
)