qu-redis 0.1.4 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/qu/backend/redis.rb +0 -11
  2. metadata +10 -12
@@ -71,17 +71,6 @@ module Qu
71
71
  redis.del("job:#{payload.id}")
72
72
  end
73
73
 
74
- def requeue(id)
75
- logger.debug "Requeuing job #{id}"
76
- if payload = get(id)
77
- redis.lrem('queue:failed', 1, id)
78
- redis.rpush("queue:#{payload.queue}", id)
79
- payload
80
- else
81
- false
82
- end
83
- end
84
-
85
74
  def register_worker(worker)
86
75
  logger.debug "Registering worker #{worker.id}"
87
76
  redis.set("worker:#{worker.id}", encode(worker.attributes))
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qu-redis
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 1
9
- - 4
10
- version: 0.1.4
8
+ - 2
9
+ - 0
10
+ version: 0.2.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Brandon Keepers
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-01-07 00:00:00 -05:00
19
- default_executable:
18
+ date: 2012-06-13 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: redis-namespace
@@ -54,12 +53,12 @@ dependencies:
54
53
  requirements:
55
54
  - - "="
56
55
  - !ruby/object:Gem::Version
57
- hash: 19
56
+ hash: 23
58
57
  segments:
59
58
  - 0
60
- - 1
61
- - 4
62
- version: 0.1.4
59
+ - 2
60
+ - 0
61
+ version: 0.2.0
63
62
  type: :runtime
64
63
  version_requirements: *id003
65
64
  description: Redis backend for qu
@@ -74,7 +73,6 @@ extra_rdoc_files: []
74
73
  files:
75
74
  - lib/qu-redis.rb
76
75
  - lib/qu/backend/redis.rb
77
- has_rdoc: true
78
76
  homepage: http://github.com/bkeepers/qu
79
77
  licenses: []
80
78
 
@@ -104,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
102
  requirements: []
105
103
 
106
104
  rubyforge_project:
107
- rubygems_version: 1.6.1
105
+ rubygems_version: 1.8.15
108
106
  signing_key:
109
107
  specification_version: 3
110
108
  summary: Redis backend for qu