lib/tasks/cron_task/lockable.rake
# Start the cron job and also make it available to be executed for next time in same iteration
#
# * Author: Puneet
# * Date: 10/10/2017
# * Reviewed By: Sunil
#
Start the cron job and also make it available to be executed for next time in same iteration
Author: Puneet
Date: 10/10/2017
Reviewed By: Sunil
Start the cron job and also make it available to be executed for next time in same iteration Author : Puneet Date : 10 / 10 / 2017 Reviewed By : Sunil
def execute_lockable_task
      Rake::Task['cron_task:lockable:execute_task'].reenable
      Rake::Task['cron_task:lockable:execute_task'].invoke
      @lock_file_handle.close
    end
def execute_lockable_task Rake :: Task [ 'cron_task:lockable:execute_task' ] . reenable Rake :: Task [ 'cron_task:lockable:execute_task' ] . invoke @lock_file_handle . close end
Start the cron job and also make it available to be executed for next time in same iteration
 Author: Puneet
 Date: 10/10/2017
 Reviewed By: Sunil
Start the cron job and also make it available to be executed for next time in same iteration Author : Puneet Date : 10 / 10 / 2017 Reviewed By : Sunil