Class: ThreeScale::Backend::Analytics::Redshift::Job
- Inherits:
-
BackgroundJob
- Object
- BackgroundJob
- ThreeScale::Backend::Analytics::Redshift::Job
- Defined in:
- lib/3scale/backend/analytics/redshift/job.rb
Constant Summary
Constants inherited from BackgroundJob
BackgroundJob::EMPTY_HOOKS, BackgroundJob::Error
Class Method Summary collapse
Methods inherited from BackgroundJob
Methods included from Configurable
#configuration, #configuration=, included
Class Method Details
.perform_logged(lock_key, _enqueue_time) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/3scale/backend/analytics/redshift/job.rb', line 9 def perform_logged(lock_key, _enqueue_time) begin latest_time_inserted = Adapter.insert_pending_events ok = true msg = job_ok_msg(latest_time_inserted) rescue Exception => e ok = false msg = e. end Importer.job_finished(lock_key) [ok, msg] end |