class ExtBatchMonitor
Public Instance Methods
perform(*args)
click to toggle source
# File lib/templates/workers/ext_batch_monitor.rb, line 6 def perform(*args) include Sys batch_name = File.basename(__FILE__).gsub('.rb', '') batch = ExtBatch.new(batch_name, pid_flag: false) begin ExtBatch.monitor_pid_file(batch) rescue Exception => e batch.exception e end batch.end end