Class: ActiveJob::QueueAdapters::DelayedJobAdapter::JobWrapper
Do not use. This class is for internal use only.
Relationships & Source Files | |
Inherits: | Object |
Defined in: | activejob/lib/active_job/queue_adapters/delayed_job_adapter.rb |
Class Method Summary
- .new(job_data) ⇒ JobWrapper constructor
Instance Attribute Summary
- #job_data rw
- #log_arguments? ⇒ Boolean readonly private
Instance Method Summary
Constructor Details
.new(job_data) ⇒ JobWrapper
Instance Attribute Details
#job_data (rw)
[ GitHub ]# File 'activejob/lib/active_job/queue_adapters/delayed_job_adapter.rb', line 32
attr_accessor :job_data
#log_arguments? ⇒ Boolean
(readonly, private)
[ GitHub ]
Instance Method Details
#display_name
[ GitHub ]# File 'activejob/lib/active_job/queue_adapters/delayed_job_adapter.rb', line 38
def display_name base_name = "#{job_data["job_class"]} [#{job_data["job_id"]}] from DelayedJob(#{job_data["queue_name"]})" return base_name unless log_arguments? "#{base_name} with arguments: #{job_data["arguments"]}" end