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.
asciinema.org/app/queues/snapshot_queue.rb

14 lines
257 B
Ruby

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