Class: Dynflow::Executors::Sidekiq::InternalJobBase
Class Method Summary
collapse
Instance Method Summary
collapse
client_push
Class Method Details
.inherited(klass) ⇒ Object
11
12
13
|
# File 'lib/dynflow/executors/sidekiq/internal_job_base.rb', line 11
def self.inherited(klass)
klass.prepend(::Dynflow::Executors::Sidekiq::Serialization::WorkerExtension)
end
|
Instance Method Details
#telemetry_options(work_item) ⇒ Object
19
20
21
|
# File 'lib/dynflow/executors/sidekiq/internal_job_base.rb', line 19
def telemetry_options(work_item)
{ queue: work_item.queue.to_s, world: Dynflow.process_world.id, worker: worker_id }
end
|
#worker_id ⇒ Object
15
16
17
|
# File 'lib/dynflow/executors/sidekiq/internal_job_base.rb', line 15
def worker_id
::Sidekiq::Logging.tid
end
|