Method: Que::Metajob#set_job
- Defined in:
- lib/que/metajob.rb
#set_job(job) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/que/metajob.rb', line 16 def set_job(job) if (run_at = job.fetch(:run_at)).is_a?(Time) job[:run_at] = run_at.utc.iso8601(6) end @job = job end |