queue-bus 0.5.4 → 0.5.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -63,7 +63,7 @@ module QueueBus
63
63
  ::QueueBus.redis { |redis| redis.set(redis_key, epoch_minute) }
64
64
  end
65
65
 
66
- def perform
66
+ def perform(*args)
67
67
  real_now = Time.now.to_i
68
68
  run_until = lock! - 2
69
69
  return if run_until < real_now
@@ -17,6 +17,13 @@ namespace :queuebus do
17
17
  puts "No subscriptions unsubscribed" if count == 0
18
18
  end
19
19
 
20
+ desc "List QueueBus queues that need worked"
21
+ task :queues => [ :preload ] do
22
+ manager = ResqueBus::TaskManager.new(false)
23
+ queues = manager.queue_names + ['bus_incoming']
24
+ puts queues.join(", ")
25
+ end
26
+
20
27
  # Preload app files if this is Rails
21
28
  # you can also do this to load the right things
22
29
  task :preload do
@@ -1,3 +1,3 @@
1
1
  module QueueBus
2
- VERSION = "0.5.4"
2
+ VERSION = "0.5.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: queue-bus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.5.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-02-05 00:00:00.000000000 Z
12
+ date: 2015-03-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_json