Retry the worker and the judge through one counter, in retry.py
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user