Sha256: f43a7c4ce19bba5afc1f864ad6d04c78d313017645d5571a75d157a05f740521

Contents?: true

Size: 306 Bytes

Versions: 4

Compression:

Stored size: 306 Bytes

Contents

module InsightsCloud
  class TasksController < ::ApplicationController
    def create
      job = InsightsCloud::Async::InsightsFullSync.perform_later
      task = ForemanTasks::Task.find_by(external_id: job.provider_job_id)

      render json: {
        task: task,
      }, status: :ok
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
foreman_rh_cloud-3.0.19 app/controllers/insights_cloud/tasks_controller.rb
foreman_rh_cloud-3.0.18.1 app/controllers/insights_cloud/tasks_controller.rb
foreman_rh_cloud-3.0.18 app/controllers/insights_cloud/tasks_controller.rb
foreman_rh_cloud-3.0.17 app/controllers/insights_cloud/tasks_controller.rb