radar-delayed_job 1.7.0 → 1.7.1

Sign up to get free protection for your applications and to get access to all the features.
data/delayed_job.gemspec CHANGED
@@ -2,12 +2,12 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "radar-delayed_job"
5
- s.version = "1.7.0"
5
+ s.version = "1.7.1"
6
6
  s.date = "2008-11-28"
7
7
  s.summary = "Database-backed asynchronous priority queue system -- Extracted from Shopify"
8
8
  s.email = "tobi@leetsoft.com"
9
9
  s.homepage = "http://github.com/tobi/delayed_job/tree/master"
10
- s.description = "Delated_job (or DJ) encapsulates the common pattern of asynchronously executing longer tasks in the background. It is a direct extraction from Shopify where the job table is responsible for a multitude of core tasks."
10
+ s.description = "Delayed_job (or DJ) encapsulates the common pattern of asynchronously executing longer tasks in the background. It is a direct extraction from Shopify where the job table is responsible for a multitude of core tasks."
11
11
  s.authors = ["Tobias Lütke"]
12
12
 
13
13
  # s.bindir = "bin"
@@ -11,9 +11,9 @@ module Delayed
11
11
 
12
12
  def initialize(options = {})
13
13
  @quiet = options[:quiet]
14
- Delayed::Job.min_priority = options[:min_priority] if options.has_key?(:min_priority)
15
- Delayed::Job.max_priority = options[:max_priority] if options.has_key?(:max_priority)
16
- Delayed::Job.job_count_max = options[:job_count_max] if options.has_key?(:job_count_max)
14
+ Delayed::Job.min_priority = options[:min_priority].to_i if options.has_key?(:min_priority)
15
+ Delayed::Job.max_priority = options[:max_priority].to_i if options.has_key?(:max_priority)
16
+ Delayed::Job.job_count_max = options[:job_count_max].to_i if options.has_key?(:job_count_max)
17
17
  end
18
18
 
19
19
  def start
data/tasks/tasks.rb CHANGED
@@ -12,6 +12,6 @@ namespace :jobs do
12
12
  task :work => [:merb_env, :environment] do
13
13
  Delayed::Worker.new(:min_priority => ENV['MIN_PRIORITY'],
14
14
  :max_priority => ENV['MAX_PRIORITY'],
15
- :job_max_count => ENV['JOB_MAX_COUNT']).start
15
+ :job_count_max => ENV['JOB_MAX_COUNT']).start
16
16
  end
17
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radar-delayed_job
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Tobias L\xC3\xBCtke"
@@ -13,7 +13,7 @@ date: 2008-11-28 00:00:00 +10:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
16
- description: Delated_job (or DJ) encapsulates the common pattern of asynchronously executing longer tasks in the background. It is a direct extraction from Shopify where the job table is responsible for a multitude of core tasks.
16
+ description: Delayed_job (or DJ) encapsulates the common pattern of asynchronously executing longer tasks in the background. It is a direct extraction from Shopify where the job table is responsible for a multitude of core tasks.
17
17
  email: tobi@leetsoft.com
18
18
  executables: []
19
19