blob: 324385216e9972e00e74f8225e3300ec5c3248df (
plain) (
tree)
|
|
require 'active_job/parameters'
module ActiveJob
module Enqueuing
##
# Push a job onto the queue. The arguments must be legal JSON types
# (string, int, float, nil, true, false, hash or array) or
# ActiveModel::GlobalIdentication instances. Arbitrary Ruby objects
# are not supported.
#
# The return value is adapter-specific and may change in a future
# ActiveJob release.
def enqueue(*args)
queue_adapter.queue self, *Parameters.serialize(args)
end
end
end
|