lib/etl/control/destination.rb in activewarehouse-etl-0.8.1 vs lib/etl/control/destination.rb in activewarehouse-etl-0.8.2

- old
+ new

@@ -261,15 +261,17 @@ # Write the row buffer << row # Record the record if ETL::Engine.job # only record the execution if there is a job - ETL::Execution::Record.create!( - :control_file => control.file, - :natural_key => nk, - :crc => crc, - :job_id => ETL::Engine.job.id - ) + ETL::Execution::Record.time_spent += Benchmark.realtime do + ETL::Execution::Record.create!( + :control_file => control.file, + :natural_key => nk, + :crc => crc, + :job_id => ETL::Engine.job.id + ) + end end end end # Add any virtual fields to the row. Virtual rows will get their value \ No newline at end of file