lib/fasten/runner.rb in fasten-0.12.8 vs lib/fasten/runner.rb in fasten-0.14.0

- old
+ new

@@ -52,10 +52,11 @@ def perform self.state = :RUNNING log_ini self, running_counters load_stats + touch_task_logs run_ui do perform_loop end @@ -65,9 +66,18 @@ stats_add_entry(state, self) stats_summary if summary ensure save_stats + end + + def touch_task_logs + FileUtils.mkdir_p "#{runner.fasten_dir}/log/task/" + tasks.each do |task| + path = "#{runner.fasten_dir}/log/task/#{task.name}.log" + puts "Fasten: creating log #{path}" + FileUtils.touch path + end end def map(list, &block) list.each do |item| task item.to_s, request: item, &block