jrgifford / delayed_paperclip

Process your Paperclip attachments in the background with delayed_job or Resque.
http://www.jstorimer.com/ruby/2010/01/30/delayed-paperclip.html
MIT License
402 stars 155 forks source link

ActiveJob not running in the background #185

Open passabilities opened 8 years ago

passabilities commented 8 years ago

Currently everything is working, except for the fact that my files are still being processed the same request as the initial upload.

Refer to my SO post for details: http://stackoverflow.com/questions/38277001/delayed-paperclip-not-running-in-the-background

Ranhiru commented 8 years ago

@passabilities Did you find a reason why it's not being processed in the background ?

passabilities commented 8 years ago

if I remember correctly there was something wrong with the file I was using.

cthorner commented 7 years ago

I am having the same issue. I'm wondering if it is related to a Rails upgrade I did at some point. Looking at ActiveJob settings I noticed this:

Rails.application.config.active_job.queue_adapter is set to 'inline'(not 'async')

Seems that might be the culprit, but I don't understand how it worked in the past. As far as I know we haven't changed that parameter.

cthorner commented 7 years ago

realizing now that it should probably be set to something like :delayed_job

cthorner commented 7 years ago

Seems to only be an issue with rails 4.2.*, setting

config.active_job.queue_adapter = :delayed_job

fixed the issue for me.

Frank004 commented 7 years ago

I'm having the same problem

passabilities commented 7 years ago

Have you guys tried with a different file? I was having an issue where it would start processing but an error would occur without warning because there was something wrong with the encoding of the file I was using.