Class: DbBlaster::PublishSourceTableJob
- Inherits:
-
ApplicationJob
- Object
- ActiveJob::Base
- ApplicationJob
- DbBlaster::PublishSourceTableJob
- Defined in:
- app/jobs/db_blaster/publish_source_table_job.rb
Overview
Publishes changed rows to SNS
Instance Method Summary collapse
Instance Method Details
#perform(source_table_id, batch_start_time) ⇒ Object
9 10 11 12 13 14 |
# File 'app/jobs/db_blaster/publish_source_table_job.rb', line 9 def perform(source_table_id, batch_start_time) source_table = SourceTable.find_by(id: source_table_id) return unless source_table PublishSourceTable.execute(source_table: source_table, batch_start_time: batch_start_time) end |