Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions ldclient/impl/datasystem/fdv2.py
Original file line number Diff line number Diff line change
Expand Up @@ -656,20 +656,12 @@ def _recovery_condition(self, status: DataSourceStatus) -> bool:
:param status: Current data source status
:return: True if recovery condition is met
"""
interrupted_at_runtime = (
status.state == DataSourceState.INTERRUPTED
and time.time() - status.since > 60 # 1 minute
)
healthy_for_too_long = (
status.state == DataSourceState.VALID
and time.time() - status.since > 300 # 5 minutes
)
cannot_initialize = (
status.state == DataSourceState.INITIALIZING
and time.time() - status.since > 10 # 10 seconds
)

return interrupted_at_runtime or healthy_for_too_long or cannot_initialize
return healthy_for_too_long

def _persistent_store_outage_recovery(self, data_store_status: DataStoreStatus):
"""
Expand Down
Loading