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

Handle unavailability of Redis in sidekiq-cron initializer
user
```ruby
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
```
assistant