polling with delayed_job
Let’s start with the API. I’d like to have something like the following. @available.working? # => true or false, so we know it’s running @available.finished? # => true or false, so we know it’s finished (already ran) Now let’s write the job. class AwesomeJob < Struct.new(:options) def perform do_something_with(options[:var]) end end So far so good. … Read more