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

after_post_process is not triggered when process_in_background is active #172

Open eduardm opened 8 years ago

eduardm commented 8 years ago

I am using paperclip gem to handle big video uploads that could take hours to finish.

Everything works fine, but after_post_process is not called when processing is done (DB column _processing is updated), but after_post_process is not called.

I need that to be able to send email when is done and pinging continuously the DB to check video_processing column is not a solution.

I also tried to monkey pathc module DelayedPaperclip module Jobs class ActiveJob < ActiveJob::Base

and add after_perform callback to send emails, but is not triggered also.

How can I register to get a callback when a job is done? I am using rails 4.2 and ActiveJob with DJ backend.

rohitpbhore commented 6 years ago

I am facing same issue.