Sha256: ebfebb7d158d9b58bff35c260845d88c31aaed9c140fd8d11dc86e6ac830f3dd
Contents?: true
Size: 674 Bytes
Versions: 26
Compression:
Stored size: 674 Bytes
Contents
require_dependency "coalescing_panda/application_controller" module CoalescingPanda class CanvasBatchesController < ApplicationController def show @batch = CanvasBatch.find(params[:id]) render @batch end def retrigger @batch = CanvasBatch.find(params[:id]) @batch.status = 'Queued' @batch.save worker = CoalescingPanda::Workers::CourseMiner.new(@batch.context, @batch.options) current_session_data[:canvas_batch_id] = worker.batch.id worker.start(true) redirect_to :back end def clear_batch_session current_session_data[:canvas_batch_id] = nil render nothing: true end end end
Version data entries
26 entries across 26 versions & 1 rubygems