# frozen_string_literal: true

class DecidimInitiativesNotifyProgress
  include Sidekiq::Worker

  def perform
    system("bundle exec rake decidim_initiatives:notify_progress")
  end
end

# frozen_string_literal: true

class DecidimInitiativesNotifyProgress
  include Sidekiq::Worker

  def perform
    system("bundle exec rake decidim_initiatives:notify_progress") if Rails.env.production?
  end
end

Add production condition in notify task
Add production condition in notify task
