Method: CobwebModule::Crawl#set_first_to_finish
- Defined in:
- lib/crawl.rb
#set_first_to_finish ⇒ Object
241 242 243 244 245 246 247 248 249 250 251 252 253 |
# File 'lib/crawl.rb', line 241 def set_first_to_finish @redis.watch("first_to_finish") do if !@redis.exists("first_to_finish") @redis.multi do debug_puts "set first to finish" @first_to_finish = true @redis.set("first_to_finish", 1) end else @redis.unwatch end end end |