schedule_file = "config/schedule.yml"
Sidekiq::Cron::Job.load_from_hash! YAML.load_file(schedule_file)

schedule_file = "config/schedule.yml"
begin
  Sidekiq::Cron::Job.load_from_hash! YAML.load_file(schedule_file)
rescue
  puts 'Could not enqueue sidekiq-cron schedule.'
end

Handle unavailability of Redis in sidekiq-cron initializer
Handle unavailability of Redis in sidekiq-cron initializer

This is necessary to avoid breaking the build of Docker images when the Ruby builder attempts to run asset pipeline.
