lib/parallel_minion/minion.rb in parallel_minion-0.4.0 vs lib/parallel_minion/minion.rb in parallel_minion-0.4.1
- old
+ new
@@ -150,10 +150,10 @@
# so that all log entries in this thread use this thread name
Thread.current.name = "#{@description}-#{Thread.current.object_id}"
logger.info("Started #{@description}")
begin
- logger.benchmark_info("Completed #{@description}", log_exception: @log_exception) do
+ logger.benchmark_info("Completed #{@description}", log_exception: @log_exception, metric: @metric) do
# Use the current scope for the duration of the task execution
if scopes.nil? || (scopes.size == 0)
@result = instance_exec(*args, &block)
else
# Each Class to scope requires passing a block to .scoping