6 7 8 9 10 11 12 13 14 15 16
# File 'lib/templates/workers/ext_batch_monitor.rb', line 6 def perform(*args) batch_name = File.basename(__FILE__).gsub('.rb', '') batch = ExtBatch.new(batch_name) begin rescue Exception => e batch.exception e end batch.end end