DEV: Update incorrect Job frequency

DEV: Update incorrect Job frequency
From 4767a5a26ede0ee724ba2e21f0abcc0efbeb8431 Mon Sep 17 00:00:00 2001
From: Rishabh <rishabh.nambiar@discourse.org>
Date: Mon, 10 Dec 2018 13:26:19 +0530
Subject: [PATCH] DEV: Update incorrect Job frequency


diff --git a/lib/tasks/scheduler.rake b/lib/tasks/scheduler.rake
index 23b7cac..081b4d1 100644
--- a/lib/tasks/scheduler.rake
+++ b/lib/tasks/scheduler.rake
@@ -10,7 +10,7 @@ task category_stats: :environment do
   Jobs::CategoryStats.new.execute(nil)
 end
 
-# Every 10 minutes
+# Every 15 minutes
 task periodical_updates: :environment do
   Jobs::PeriodicalUpdates.new.execute(nil)
 end

GitHub

Comments like this are really bad IMO. They are unnecessary coupled to the implementation of the job and becomes inaccurate whenever the job changes. I would just nuke all these comments from the rake task.

4 Likes