I need to update a model after delayed_job
processes a task on it, e.g:
foo.delay.something
After something
is done, I need to update the foo object, what is the best way to achieve this? I was thinking in coding a callback on the Delayed::Backend::ActiveRecord::Job
class, but there's should be something cleaner and better to do this.
Thanks in advance.