diff options
Diffstat (limited to 'lib/chef/runner.rb')
-rw-r--r-- | lib/chef/runner.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/chef/runner.rb b/lib/chef/runner.rb index 6125fe59e1..ca68d17f57 100644 --- a/lib/chef/runner.rb +++ b/lib/chef/runner.rb @@ -78,7 +78,11 @@ class Chef # Execute each resource. run_context.resource_collection.execute_each_resource do |resource| - Array(resource.action).each {|action| run_action(resource, action)} + Array(resource.action).each {|action| + run_action(resource, action) + GC::Tracer.custom_event_logging("after #{resource} #{action}") + GC.start(full_mark: true) + } end rescue Exception => e |