instance method
serialize
Ruby on Rails 5.1.7
Since v4.2.11.3Signature
serialize()
Returns a hash with the job data that can safely be passed to the queueing adapter.
Source
# File activejob/lib/active_job/core.rb, line 79
def serialize
{
"job_class" => self.class.name,
"job_id" => job_id,
"provider_job_id" => provider_job_id,
"queue_name" => queue_name,
"priority" => priority,
"arguments" => serialize_arguments(arguments),
"executions" => executions,
"locale" => I18n.locale.to_s
}
end
Defined in activejob/lib/active_job/core.rb line 79
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveJob::Core