lib/crons/hook_processors/base.rb
# method which process hooks and performs required operation
#
# * Author: Puneet
# * Date: 11/11/2017
# * Reviewed By:
#
method which process hooks and performs required operation
Author: Puneet
Date: 11/11/2017
Reviewed By.
method which process hooks and performs required operation Author : Puneet Date : 11 / 11 / 2017 Reviewed By .
def process_hooks
        @hooks_to_be_processed.each do |hook|
          begin
            @hook = hook
            process_hook
          rescue StandardError => se
            @failed_hook_to_be_retried[@hook.id] = {
              exception: {
                message: se.message,
                trace: se.backtrace[0..10]
              }
            }
          end
        end
      end
def process_hooks @hooks_to_be_processed . each do | hook | begin @hook = hook process_hook rescue StandardError => se @failed_hook_to_be_retried [ @hook . id ] = { exception : { message : se . message , trace : se . backtrace [ 0 .. 10 ] } } end end end
method which process hooks and performs required operation
 Author: Puneet
 Date: 11/11/2017
 Reviewed By:
method which process hooks and performs required operation Author : Puneet Date : 11 / 11 / 2017 Reviewed By :