Class: TalkToYourApp::Plugins::Jobs::Tools::Health
- Defined in:
- lib/talk_to_your_app/plugins/jobs/tools/health.rb
Overview
Reports worker/queue health: running processes, threads/concurrency, and pending/claimed/scheduled counts. The shape is adapter-specific (each response carries an ‘adapter` key to branch on).
Instance Method Summary collapse
Methods inherited from Tool
argument, arguments, connection, default_arguments, description, dispatch, input_schema_hash, invoke, name, normalize_response, to_mcp_definition, to_mcp_tool
Instance Method Details
#call(_args, _ctx) ⇒ Object
16 17 18 19 20 |
# File 'lib/talk_to_your_app/plugins/jobs/tools/health.rb', line 16 def call(_args, _ctx) json(TalkToYourApp::Plugins::Jobs.configured_adapter.health) rescue StandardError => e error("Jobs backend unavailable: #{e.class}: #{e.}") end |