Skip to content

Commit

Permalink
Remove unused CachePolicyIsStaleError.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 493296928
  • Loading branch information
vizier-team authored and copybara-github committed Dec 6, 2022
1 parent fe5ee7f commit beb8704
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
10 changes: 0 additions & 10 deletions vizier/_src/pythia/pythia_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,6 @@ class TemporaryPythiaError(PythiaError):
"""


class CachedPolicyIsStaleError(PythiaError):
"""Raise this if the cached Policy instance is too stale.
Raised by Policy code. Because Policy instances are cached,
they could potentially become stale. If so, code should raise this,
and the computation will be restarted with a freshly created Policy
instance.
"""


class InactivateStudyError(PythiaError):
"""Pythia cannot handle this Study as configured; inactivate it.
Expand Down
1 change: 0 additions & 1 deletion vizier/pythia.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
from vizier._src.pythia.policy import SuggestDecision
from vizier._src.pythia.policy import SuggestRequest
from vizier._src.pythia.policy_supporter import PolicySupporter
from vizier._src.pythia.pythia_errors import CachedPolicyIsStaleError
from vizier._src.pythia.pythia_errors import CancelComputeError
from vizier._src.pythia.pythia_errors import InactivateStudyError
from vizier._src.pythia.pythia_errors import LoadTooLargeError
Expand Down

0 comments on commit beb8704

Please sign in to comment.