Class: LlmCostTracker::Doctor::IngestionCheck

Inherits:
Object
  • Object
show all
Defined in:
lib/llm_cost_tracker/doctor/ingestion_check.rb

Instance Method Summary collapse

Instance Method Details

#callObject



10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/llm_cost_tracker/doctor/ingestion_check.rb', line 10

def call
  return unless Probe.table_exists?("llm_cost_tracker_calls")
  return inline_check unless LlmCostTracker::Ingestion.async?

  missing = missing_parts
  return async_ok if missing.empty?

  Check.new(
    :error,
    "async ingestion",
    "missing #{missing.join(', ')}; see docs/upgrading.md for the recovery steps"
  )
end