lib/jets/cli/schedule/translate.rb in jets-6.0.2 vs lib/jets/cli/schedule/translate.rb in jets-6.0.3

- old
+ new

@@ -15,12 +15,12 @@ # interface method: used by deploy to translate on_deploy def perform # Currently only sidekiq is supported sidekiq = YAML.load_file("config/sidekiq.yml") sidekiq = ActiveSupport::HashWithIndifferentAccess.new(sidekiq) - schedule = sidekiq[:schedule] + schedule = sidekiq.dig(:scheduler, :schedule) || sidekiq[:schedule] unless schedule - log.error "config/sidekiq.yml does not have a schedule key. Nothing to translate." + log.error "config/sidekiq.yml does not have a scheduler.schedule key. Nothing to translate." return false end log.info "Translating config/sidekiq.yml => config/jets/schedule.yml" mapped = schedule.map do |k, v|