Method: Que::Job.run

Defined in:
lib/que/job.rb

.run(*args) ⇒ Object



215
216
217
218
219
220
221
222
223
224
# File 'lib/que/job.rb', line 215

def run(*args)
  # Make sure things behave the same as they would have with a round-trip
  # to the DB.
  args, kwargs = Que.split_out_ruby2_keywords(args)
  args = Que.deserialize_json(Que.serialize_json(args))
  kwargs = Que.deserialize_json(Que.serialize_json(kwargs))

  # Should not fail if there's no DB connection.
  _run_attrs(args: args, kwargs: kwargs)
end