redis-repeater 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/redis_repeater/repeater.rb +2 -0
- data/lib/redis_repeater/version.rb +1 -1
- metadata +1 -1
@@ -51,6 +51,8 @@ module RedisRepeater
|
|
51
51
|
options[:queue] = repeat['queue']
|
52
52
|
options[:timeout] = repeat['timeout'] || 0
|
53
53
|
options[:maintain_count] = !!repeat['maintain_count'] # default false
|
54
|
+
# Remove duplicates and add this
|
55
|
+
@repeats.delete_if { |r| r.source == options[:source] && r.queue == options[:queue] }
|
54
56
|
@repeats << TransferSchedulerJob.new(self, options)
|
55
57
|
end
|
56
58
|
end
|