DEV: notify when the rake ask is completed

DEV: notify when the rake ask is completed

diff --git a/lib/tasks/import.rake b/lib/tasks/import.rake
index 12d97ad..0bd46c0 100644
--- a/lib/tasks/import.rake
+++ b/lib/tasks/import.rake
@@ -500,7 +500,7 @@ end
 
 desc "Update first_post_created_at column in user_stats table"
 task "import:update_first_post_created_at" => :environment do
-  puts "", "Updating first_post_created_at..."
+  log "Updating first_post_created_at..."
 
   DB.exec <<~SQL
     WITH sub AS (
@@ -515,4 +515,6 @@ task "import:update_first_post_created_at" => :environment do
     WHERE u1.user_id = user_stats.user_id
       AND user_stats.first_post_created_at IS DISTINCT FROM sub.first_post_created_at
   SQL
+
+  log "Done"
 end

GitHub sha: 07774894

1 Like