INNER CODE UNIT · Python
run_domain_batch
samugit83/redamon · recon/main.py:1710
def run_domain_batch(groups: list, start_time) -> int:
"""Walk the operator-approved domain groups, one after another.
The whole batch is ONE scan: one queue entry, one container, one version, one
graph clear (already done by the caller). Each group runs the identical
pipeline a single-domain project runs and writes its results to the graph
before the next group starts, so the graph fills in progressively.
A failing group does NOT abort the batch. One unresolvable domain must not
cost the operator the other nineteen, so failures are collected and reported
at the end; the run only fails outright if EVERY group failed.
"""
total = len(groups)
print("═" * 63)
print(f"[*][Batch] DOMAIN BATCH: {total} domain group(s), sequential")
for idx, group in enumerate(groups, 1):
print(f" [*][Batch] {idx}. {group.get('rootDomain')} "
f"({len(group.get('prefixes') or [])} host(s))")