Class: Sidekiq::Mcp::Tools::RetryJobTool
- Inherits:
-
Sidekiq::Mcp::Tool
- Object
- Sidekiq::Mcp::Tool
- Sidekiq::Mcp::Tools::RetryJobTool
- Defined in:
- lib/sidekiq/mcp/tools/retry_job_tool.rb
Instance Method Summary collapse
Methods inherited from Sidekiq::Mcp::Tool
arguments, #call, description, schema_to_json_schema, to_tool_definition
Instance Method Details
#perform(jid:) ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/sidekiq/mcp/tools/retry_job_tool.rb', line 16 def perform(jid:) retry_set = Sidekiq::RetrySet.new job = retry_set.find_job(jid) if job job.retry "Job #{jid} has been retried successfully" else "Job #{jid} not found in retry set" end end |