在 table Delayed::Job 中查找记录。 Rails

Find record in table Delayed::Job. Rails

如何通过 id 进行搜索(raw_attributes: id: 75)

我可以保存作业,但找不到要编辑的作业

我尝试了 Delayed::Job.where('handler LIKE ?', 'id:75') 但是没有找到这条记录

table delayed_jobs

字段处理程序包含

    --- !ruby/object:Delayed::PerformableMailer
object: !ruby/class 'ReminderMailer'
method_name: :reminder_email
args:
- !ruby/object:Task
  raw_attributes:
    id: 75
    user_id: 6
    name: '1'
    done: false
    description: '12'
    reminder: &3 2017-06-02 10:47:00.000000000 Z
    priorities: 2
    created_at: &4 2017-06-02 10:25:00.000000000 Z
    updated_at: &6 2017-06-02 10:25:00.000000000 Z
  attributes: !ruby/object:ActiveRecord::AttributeSet

请帮帮我

Delayed::Job.where("handler like (?)", "%id: 75%")

当你使用 like 时,你应该使用 %% 标志并符合正确的标准。