Make SnapshotWorker a Sidekiq based worker
parent
4943980baf
commit
49df9e9082
@ -1,13 +0,0 @@
|
||||
class SnapshotQueue < GirlFriday::WorkQueue
|
||||
include Singleton
|
||||
|
||||
def initialize
|
||||
super(:snapshot_queue, :size => 3) do |asciicast_id|
|
||||
SnapshotWorker.new.perform(asciicast_id)
|
||||
end
|
||||
end
|
||||
|
||||
def self.push *args
|
||||
instance.push *args
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue