Skip to content

Class HTM::QueryTimeoutError

Inherits HTM::DatabaseError
Defined in lib/htm/errors.rb

Raised when a database query exceeds the configured timeout

Default timeout is 30 seconds. Configure via db_query_timeout parameter when initializing HTM.

@example Handling timeout

begin
  htm.recall("complex query", strategy: :hybrid)
rescue HTM::QueryTimeoutError
  # Retry with simpler query or smaller limit
end