Class: WhereIsWaldo::PresenceCleanupJob

Inherits:
ApplicationJob
  • Object
show all
Defined in:
app/jobs/where_is_waldo/presence_cleanup_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(timeout: nil) ⇒ Object



7
8
9
10
11
# File 'app/jobs/where_is_waldo/presence_cleanup_job.rb', line 7

def perform(timeout: nil)
  cleaned = PresenceService.cleanup(timeout: timeout)
  Rails.logger.info "[WhereIsWaldo] Cleaned up #{cleaned} stale presence records"
  cleaned
end