app/controllers/import_controller.rb
# include ActionController::Live # for sse (progress bar updatess)
include ActionController::Live # for sse (progress bar updatess)
include ActionController :: Live # for sse ( progress bar updatess )
def status
    render nothing: true
  end
def status render nothing : true end
include ActionController::Live # for sse (progress bar updatess)
include ActionController :: Live # for sse ( progress bar updatess )
#   response.headers['Content-Type'] = 'text/event-stream' #   sse = SSE.new(response.stream) #   begin #     # on_change is a method to listen to notifications #     ProgressBarUpdater.on_change do |data| #       sse.write(data) #     end #   rescue IOError #     # Client Disconnected #   ensure #     sse.close #   end