14 lines
256 B
Ruby
14 lines
256 B
Ruby
|
class SnapshotQueue < GirlFriday::WorkQueue
|
||
|
include Singleton
|
||
|
|
||
|
def initialize
|
||
|
super(:comment_queue, :size => 3) do |asciicast_id|
|
||
|
SnapshotWorker.new.perform(asciicast_id)
|
||
|
end
|
||
|
end
|
||
|
|
||
|
def self.push *args
|
||
|
instance.push *args
|
||
|
end
|
||
|
end
|