Sha256: 0429849b5bfb232e53606eb2b31f13a503d67f365ba7d368e1b4856ab8d97288

Contents?: true

Size: 565 Bytes

Versions: 12

Compression:

Stored size: 565 Bytes

Contents

require 'resque'

module DelayedCron
  module Jobs
    class Resque
      @queue = :cron_job

      def self.enqueue_delayed_cron(klass, method_name, options)
        unless scheduled?(klass, method_name)
          # TODO: need to find resque's equivalent to sidekiq's perform_in method
        end
      end

      def self.scheduled?(klass, method_name)
        # TODO: returns true if job is already scheduled
      end

      def self.perform(klass, method_name, options)
        DelayedCron.process_job(klass, method_name, options)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
delayed_cron-0.2.11 lib/delayed_cron/jobs/resque.rb
delayed_cron-0.2.10 lib/delayed_cron/jobs/resque.rb
delayed_cron-0.2.9 lib/delayed_cron/jobs/resque.rb
delayed_cron-0.2.8 lib/delayed_cron/jobs/resque.rb
delayed_cron-0.2.7 lib/delayed_cron/jobs/resque.rb
delayed_cron-0.2.6 lib/delayed_cron/jobs/resque.rb
delayed_cron-0.2.5 lib/delayed_cron/jobs/resque.rb
delayed_cron-0.2.4 lib/delayed_cron/jobs/resque.rb
delayed_cron-0.2.3 lib/delayed_cron/jobs/resque.rb
delayed_cron-0.2.2 lib/delayed_cron/jobs/resque.rb
delayed_cron-0.2.1 lib/delayed_cron/jobs/resque.rb
delayed_cron-0.2.0 lib/delayed_cron/jobs/resque.rb