Retry the worker and the judge through one counter, in retry.py

This commit is contained in:
2026-09-29 11:02:57 +02:00
parent 6c09cadfa3
commit fb221787d6
5 changed files with 27 additions and 44 deletions
+1 -6
View File
@@ -1,14 +1,9 @@
import dataclasses
@dataclasses.dataclass(frozen=True)
class Continue:
"""The cycle ended; the loop starts the next."""
@dataclasses.dataclass(frozen=True)
class Failure:
"""A step failed and its caller decides: a worker or judge run is retried until it fails three times running; anything else becomes a Stop or a warning."""
"""A step failed and its caller decides: `retried` reruns a worker or judge run until it fails three times running; anything else becomes a Stop or a warning."""
reason: str