MCPcopy
hub / github.com/feast-dev/feast / can_transition_to

Method can_transition_to

sdk/python/feast/feature_view.py:66–69  ·  view source on GitHub ↗

Return True if transitioning from this state to *target* is allowed.

(self, target: "FeatureViewState")

Source from the content-addressed store, hash-verified

64 AVAILABLE_ONLINE = 4
65
66 def can_transition_to(self, target: "FeatureViewState") -> bool:
67 """Return True if transitioning from this state to *target* is allowed."""
68 allowed = _VALID_STATE_TRANSITIONS.get(self, set())
69 return target in allowed
70
71 @classmethod
72 def from_proto(cls, proto_val: int) -> "FeatureViewState":

Callers 6

materializeMethod · 0.80
feature_view_set_stateFunction · 0.80

Calls 1

getMethod · 0.80

Tested by 2