delayed_job_on_steroids 1.7.2 → 1.7.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.7.2
1
+ 1.7.3
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{delayed_job_on_steroids}
8
- s.version = "1.7.2"
8
+ s.version = "1.7.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Tobias L\303\274tke", "Aleksey Palazhchenko"]
@@ -4,6 +4,7 @@ class CreateDelayedJobs < ActiveRecord::Migration
4
4
  t.integer :priority, :default => 0 # Allows some jobs to jump to the front of the queue
5
5
  t.integer :attempts, :default => 0 # Provides for retries, but still fail eventually.
6
6
  t.text :handler # YAML-encoded string of the object that will do work
7
+ t.string :job_type # Class name of the job object, for type-specific workers
7
8
  t.string :last_error # reason for last failure (See Note below)
8
9
  t.datetime :run_at # When to run. Could be Time.now for immediately, or sometime in the future.
9
10
  t.datetime :locked_at # Set when a client is working on this object
@@ -14,6 +15,8 @@ class CreateDelayedJobs < ActiveRecord::Migration
14
15
  end
15
16
 
16
17
  add_index :delayed_jobs, :locked_by
18
+ add_index :delayed_jobs, :job_type
19
+ add_index :delayed_jobs, :priority
17
20
  end
18
21
 
19
22
  def self.down
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 7
8
- - 2
9
- version: 1.7.2
8
+ - 3
9
+ version: 1.7.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - "Tobias L\xC3\xBCtke"