delayed_job update query is running infinitely

后端 未结 4 745
面向向阳花
面向向阳花 2021-02-13 12:55

I am using delayed_job and delayed_job_active_record for back ground job execution in my rails application. We are using queue based delayed_job. For starting the delayed I am u

4条回答
  •  忘了有多久
    2021-02-13 13:18

    I faced same issue and i resolved it by adding index on queue field.

    def self.up
      create_table :delayed_jobs, :force => true do |table|
      # Add index on queue field
      add_index :delayed_jobs, [:queue], :name => 'delayed_jobs_queue'
    end
    

    For more information visit below document http://himarsh.org/cautions-on-delayed-jobs/

提交回复
热议问题