lib/crons/hook_processors/base.rb
def release_lock_and_update_status_for_non_processed_hooks

        @hooks_to_be_processed.each do |hook|

          failed_hook_to_be_retried = @failed_hook_to_be_retried[hook.id]
          hook.mark_failed_to_be_retried(failed_hook_to_be_retried) if failed_hook_to_be_retried.present?

          failed_hook_to_be_ignored = @failed_hook_to_be_ignored[hook.id]
          hook.mark_failed_to_be_ignored(failed_hook_to_be_ignored) if failed_hook_to_be_ignored.present?

        end

      end
# for the hooks which failed, unlock those records so that thet can be reprocessed later
#
# * Author: Puneet
# * Date: 11/11/2017
# * Reviewed By:
#
for the hooks which failed, unlock those records so that thet can be reprocessed later
Author: Puneet
Date: 11/11/2017
Reviewed By.
for the hooks which failed unlock those records so that thet can be reprocessed later Author : Puneet Date : 11 / 11 / 2017 Reviewed By .
def release_lock_and_update_status_for_non_processed_hooks
        @hooks_to_be_processed.each do |hook|
          failed_hook_to_be_retried = @failed_hook_to_be_retried[hook.id]
          hook.mark_failed_to_be_retried(failed_hook_to_be_retried) if failed_hook_to_be_retried.present?
          failed_hook_to_be_ignored = @failed_hook_to_be_ignored[hook.id]
          hook.mark_failed_to_be_ignored(failed_hook_to_be_ignored) if failed_hook_to_be_ignored.present?
        end
      end
def release_lock_and_update_status_for_non_processed_hooks @hooks_to_be_processed . each do | hook | failed_hook_to_be_retried = @failed_hook_to_be_retried [ hook . id ] hook . mark_failed_to_be_retried ( failed_hook_to_be_retried ) if failed_hook_to_be_retried . present? failed_hook_to_be_ignored = @failed_hook_to_be_ignored [ hook . id ] hook . mark_failed_to_be_ignored ( failed_hook_to_be_ignored ) if failed_hook_to_be_ignored . present? end end
for the hooks which failed, unlock those records so that thet can be reprocessed later
 Author: Puneet
 Date: 11/11/2017
 Reviewed By:
for the hooks which failed unlock those records so that thet can be reprocessed later Author : Puneet Date : 11 / 11 / 2017 Reviewed By :