Class: RoundhouseUi::Demo::EmbeddingWorker

Inherits:
Base
  • Object
show all
Defined in:
lib/roundhouse_ui/demo.rb

Overview

The flaky one: the group that dominates the Errors page.

Constant Summary collapse

OWNER =
:ai
QUEUE =
"ai"
DURATION =
(400..2_500)
FAILURE_RATE =
0.24
ERRORS =
[
  [ Timeout::Error, "embedding endpoint timed out" ],
  [ RuntimeError, "429 rate limited" ],
  [ KeyError, "key not found: :embedding" ]
].freeze

Method Summary

Methods inherited from Base

#perform