Skip to content

Open-source live-chat, email support, omni-channel desk. An alternative to Intercom, Zendesk, Salesforce Service Cloud etc. 🔥💬

287 B
Raw Blame
class Captain::Copilot::ApprovalExpiryJob < ApplicationJob
  queue_as :default

  # Wakes the waiting turn when the agent never decided. CopilotRun::Action#expire does nothing once the action is decided.
  def perform(run_id)
    CopilotRun::Action.find_by(id: run_id)&.expire
  end
end