about summary refs log tree commit diff
path: root/app/workers/scheduler/ip_cleanup_scheduler.rb
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2018-08-21 18:24:48 +0200
committerThibaut Girka <thib@sitedethib.com>2018-08-21 18:24:48 +0200
commit8b4abaa90d8dff64525d92c3ba1c750356608240 (patch)
tree51f194442d2ec7ab760b443b98c7685f64481ca7 /app/workers/scheduler/ip_cleanup_scheduler.rb
parentc78918162642649ce294d89effbf2e815c2aa327 (diff)
parentf06fa099625e928e5858ea81a20be1eddf6c6fbb (diff)
Merge branch 'master' into glitch-soc/master
Conflicts:
	config/routes.rb

Added the “endorsements” route from upstream.
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