HeartState#
- class smoothcrawler_cluster.model.metadata_enum.HeartState(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
State of heartbeat at that time
The heartbeat state.
- NEWBORN = 'Newborn'#
The initialized heartbeat state of a crawler instance which just be created, in other words, crawler instance’s heartbeat state would be this before it run updating heartbeat process.
- HEALTHY = 'Healthy'#
This means that current crawler instance runs finely without any issue.
- ARRHYTHMIA = 'Arrhythmia'#
It means that the current crawler instance is late to update property heart_rhythm_time. It likes its heartbeat rate is not stable and cannot work normally lead to it looks or sounds not good, just like arrhythmia in human.
- ASYSTOLE = 'Asystole'#
If a crawler instance’s property healthy_state become this state, it means the crawler be judged it’s dead by other alive crawler instances. So the dead crawler instance won’t run anymore and list to fail_xxx property in State.
- APPARENT_DEATH = 'Apparent Death'#
It would be this state if the crawler instance would be stopped or killed manually.