You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
256 B
Ruby
14 lines
256 B
Ruby
13 years ago
|
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
|