qu-redis 0.1.2 → 0.1.3

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 +4 -1
  2. metadata +7 -7
@@ -33,8 +33,11 @@ module Qu
33
33
  logger.info { "Clearing queues: #{queue.inspect}" }
34
34
  Array(queue).each do |q|
35
35
  logger.debug "Clearing queue #{q}"
36
+ while id = redis.lpop("queue:#{q}")
37
+ logger.debug "Clearing job #{id}"
38
+ redis.del("job:#{id}")
39
+ end
36
40
  redis.srem('queues', q)
37
- redis.del("queue:#{q}")
38
41
  end
39
42
  end
40
43
 
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: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Brandon Keepers
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-10-05 00:00:00 -04:00
18
+ date: 2011-10-10 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -54,12 +54,12 @@ dependencies:
54
54
  requirements:
55
55
  - - "="
56
56
  - !ruby/object:Gem::Version
57
- hash: 31
57
+ hash: 29
58
58
  segments:
59
59
  - 0
60
60
  - 1
61
- - 2
62
- version: 0.1.2
61
+ - 3
62
+ version: 0.1.3
63
63
  type: :runtime
64
64
  version_requirements: *id003
65
65
  description: Redis backend for qu