Reputation: 1060
Is there a way to schedule a job at a specific time with delayed_job through the "delay" method, not through handle_asynchronously? Something like:
class.delay.method(param), :run_at => Proc.new {time}
Upvotes: 13
Views: 6986
Reputation: 1060
Figured it out. You can run delayed_job by passing run_at as a param to delay.
class.delay(run_at: 5.hours.from_now).method(param)
Upvotes: 23