Skip to content

Results are limited to Maximum Independent Set v0.2.3

Product news
You are reading Maximum Independent Set v0.2.3, an older version of this documentation. Go to the latest version (v0.3.2)

mis.shared.retrier

module
mis.shared.retrier

Backoff-and-retry utilities.

Classes

  • PygRetrier — Our test harness attempts to run tests concurrently, but the pyg dataset loader does not work well with concurrency.

class
PygRetrier (max_attempts: int = 3, name: str = 'PygRetrier')

Our test harness attempts to run tests concurrently, but the pyg dataset loader does not work well with concurrency.

We work around this by simply retrying the loads a few times, until it succeeds.

Create a PygRetrier

Parameters

  • max_attempts : optional — The max number of attempts to undertake before giving up. Defaults to 3.

  • name : optional — A name to use during logging.

Methods

  • insist — Attempt to call a function or constructor repeatedly until, hopefully, it works.

method
insist (callback: Type[Dataset], **kwargs: Any) → Dataset

Attempt to call a function or constructor repeatedly until, hopefully, it works.

Raises

  • exn