Sha256: 771b225e5258a2bec7448b08baa68716c36d3a2e8e9c84b7b1ffbb4819c0d477

Contents?: true

Size: 408 Bytes

Versions: 3

Compression:

Stored size: 408 Bytes

Contents

require "active_job"

module CanvasSync
  module Jobs
    # Inherit from this class to build a Job that integrates
    # well with this gem.
    class ApplicationJob < ActiveJob::Base
      # Returns the amount of time to wait between report status checks
      #
      # @return [Integer]
      def report_checker_wait_time
        Rails.env.development? ? 1.second : 30.seconds
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
canvas_sync-0.1.4 lib/canvas_sync/jobs/application_job.rb
canvas_sync-0.1.3 lib/canvas_sync/jobs/application_job.rb
canvas_sync-0.1.2 lib/canvas_sync/jobs/application_job.rb