Class: InstDataShipper::Jobs::Base
- Inherits:
-
ActiveJob::Base
- Object
- ActiveJob::Base
- InstDataShipper::Jobs::Base
- Defined in:
- lib/inst_data_shipper/jobs/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#start_time ⇒ Object
readonly
Returns the value of attribute start_time.
Instance Method Summary collapse
Instance Attribute Details
#start_time ⇒ Object (readonly)
Returns the value of attribute start_time.
6 7 8 |
# File 'lib/inst_data_shipper/jobs/base.rb', line 6 def start_time @start_time end |
Instance Method Details
#apply_apm_tags! ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/inst_data_shipper/jobs/base.rb', line 13 def if defined?(Sentry) scope = Sentry.get_current_scope ctx = CanvasSync::JobBatches::Batch.current_context scope.({ "ids.dump_batch_id" => ctx[:tracker_id], "ids.dumper_class" => ctx[:origin_class], }) end end |
#working_dir ⇒ Object
26 27 28 |
# File 'lib/inst_data_shipper/jobs/base.rb', line 26 def working_dir @working_dir ||= Dir.mktmpdir end |