[util] set flags in range predicates

use flags to stop extractors immediately when hitting the upper range
limit instead of raising an exception one predicate check later
This commit is contained in:
Mike Fährmann
2026-02-02 21:48:45 +01:00
parent e44c5bd707
commit 0c04090ff4
2 changed files with 27 additions and 11 deletions

View File

@@ -300,7 +300,8 @@ class Job():
alt is not None and (prange := extr.config(alt + "-range")):
try:
skip = extr.skip if skip and not pfilter else None
predicates.append(util.predicate_range(prange, skip))
flag = target if alt is not None else None
predicates.append(util.predicate_range(prange, skip, flag))
except ValueError as exc:
extr.log.warning("invalid %s range: %s", target, exc)