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.
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.