I am sure that there is a βbestβ answer, but the last time I tried to use the enqueue method, it was βbrokenβ. By this, I mean that I could not get it to work.
I do something similar to what you do, besides what I do
TestJob.new.delay(:run_at => 10.seconds.from_now).perform
source
share