about summary refs log tree commit diff
path: root/app/workers/scheduler/ip_cleanup_scheduler.rb
diff options
context:
space:
mode:
authorpluralcafe-docker <docker@plural.cafe>2018-08-22 08:26:56 +0000
committerpluralcafe-docker <docker@plural.cafe>2018-08-22 08:26:56 +0000
commita4935a8e24dcfa865fb330693d8ec90beca1aa98 (patch)
tree9fc0be073bc2ed5bf4231d850106f214fdeb020e /app/workers/scheduler/ip_cleanup_scheduler.rb
parentc339d49d82b3fd2873831029d9c92b3fbf1236e3 (diff)
parent37965ac8d9773ae79f6b8dd6fcd353894d2194ca (diff)
Merge branch 'glitch'
Diffstat (limited to 'app/workers/scheduler/ip_cleanup_scheduler.rb')
-rw-r--r--app/workers/scheduler/ip_cleanup_scheduler.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/workers/scheduler/ip_cleanup_scheduler.rb b/app/workers/scheduler/ip_cleanup_scheduler.rb
index 613a5e336..6bb93df7d 100644
--- a/app/workers/scheduler/ip_cleanup_scheduler.rb
+++ b/app/workers/scheduler/ip_cleanup_scheduler.rb
@@ -5,6 +5,8 @@ class Scheduler::IpCleanupScheduler
 
   RETENTION_PERIOD = 1.year
 
+  sidekiq_options unique: :until_executed
+
   def perform
     time_ago = RETENTION_PERIOD.ago
     SessionActivation.where('updated_at < ?', time_ago).destroy_all