Method: Notifu::Cleaner#perform
- Defined in:
- lib/notifu/workers/processor.rb
#perform(notifu_id, delay = 15) ⇒ Object
429 430 431 432 433 434 435 436 437 |
# File 'lib/notifu/workers/processor.rb', line 429 def perform notifu_id, delay=15 sleep delay begin Notifu::Model::Issue.with(:notifu_id, notifu_id).delete log "info", "Cleanup NID #{notifu_id} - success" rescue NoMethodError log "info", "Cleanup NID #{notifu_id} - not found" end end |