about summary refs log tree commit diff
path: root/app/workers/scheduler/trends/refresh_scheduler.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/workers/scheduler/trends/refresh_scheduler.rb')
-rw-r--r--app/workers/scheduler/trends/refresh_scheduler.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/workers/scheduler/trends/refresh_scheduler.rb b/app/workers/scheduler/trends/refresh_scheduler.rb
new file mode 100644
index 000000000..b559ba46b
--- /dev/null
+++ b/app/workers/scheduler/trends/refresh_scheduler.rb
@@ -0,0 +1,11 @@
+# frozen_string_literal: true
+
+class Scheduler::Trends::RefreshScheduler
+  include Sidekiq::Worker
+
+  sidekiq_options retry: 0
+
+  def perform
+    Trends.refresh!
+  end
+end