Module: Omen::Stated

Extended by:
ActiveSupport::Concern
Included in:
Reading
Defined in:
app/models/omen/stated.rb

Overview

Extends Omen::Reading to have a status of its own, rather than one a host shares out.

Constant Summary collapse

STATUSES =

The states a reading passes through. The reading...

[
  :unstarted, # ... has been asked something and has nothing back yet (default)
  :started,   # ... is being answered right now, by whichever run holds the claim
  :completed, # ... has been answered, so another question may follow
  :failed,    # ... could not be answered at all, and is the asker's to try again
]
STALLED_AFTER =

How long a run holds its claim before another may take the reading over.

10.minutes