lib/sous_vide/handler.rb
# Backfills unprocessed resources. This is called only if chef-client failed (:converge_failed
# event). SousVide is now in "post-converge" run phase.
#
# Unprocessed resources as a result of notifications are not included.
Backfills unprocessed resources. This is called only if chef-client failed (:converge_failed
event). SousVide is now in "post-converge" run phase.

Unprocessed resources as a result of notifications are not included.
Backfills unprocessed resources . This is called only if chef - client failed ( : converge_failed event ) . SousVide is now in " post - converge " run phase . Unprocessed resources as a result of notifications are not included .
def consume_unprocessed_resources!
      all_known_resources = expand_chef_resources!
      return if @resource_collection_cursor >= all_known_resources.size
      unprocessed = all_known_resources[@resource_collection_cursor..-1]
      unprocessed.each do |tracked|
        resource_action_start(
          tracked.chef_resource_handle, 
          tracked.action,               
          nil,                          
          nil                           
        )
        resource_completed(
          tracked.chef_resource_handle  
        )
      end
    end
def consume_unprocessed_resources! all_known_resources = expand_chef_resources! return if @resource_collection_cursor >= all_known_resources . size unprocessed = all_known_resources [ @resource_collection_cursor .. - 1 ] unprocessed . each do | tracked | resource_action_start ( tracked . chef_resource_handle , tracked . action , nil , nil ) resource_completed ( tracked . chef_resource_handle ) end end
Backfills unprocessed resources.
Backfills unprocessed resources .
# No unprocessed resources left. Failure likely occured on last resource or in a delayed # notification. # TODO: check delayed notification failure. We may also want to backfeed unprocessed delayed # notifications too? Maybe. # Pass unprocessed resources via  :resource_action_start and :resource_completed so # they will end up in @processed collection, but with status set to "unprocessed". # new_resource # action # notification_type # notifying_resource # new_resource