Sha256: b215fb4fcf2ade3847adfa02f0deb409eeb57fea8809e8d5e98f7c6ddbd78a81

Contents?: true

Size: 264 Bytes

Versions: 7

Compression:

Stored size: 264 Bytes

Contents

require "#{Rails.root}/app/jobs/test_job"

class JobsController < ApplicationController
  def create
    # Queue job
    job_id = SecureRandom.uuid
    Resque.enqueue(Jobs::Test, job_id: job_id)

    # Return response
    render json: { job_id: job_id }
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ddtrace-0.51.1 integration/apps/rails-five/app/controllers/jobs_controller.rb
ddtrace-0.51.0 integration/apps/rails-five/app/controllers/jobs_controller.rb
ddtrace-0.50.0 integration/apps/rails-five/app/controllers/jobs_controller.rb
ddtrace-0.49.0 integration/apps/rails-five/app/controllers/jobs_controller.rb
ddtrace-0.48.0 integration/apps/rails-five/app/controllers/jobs_controller.rb
ddtrace-0.47.0 integration/apps/rails-five/app/controllers/jobs_controller.rb
ddtrace-0.46.0 integration/apps/rails-five/app/controllers/jobs_controller.rb