From 7c8a7e7f384004ea199f3ccfb645ddd1c81c3576 Mon Sep 17 00:00:00 2001 From: Eugene Burmakin Date: Tue, 22 Jul 2025 20:25:44 +0200 Subject: [PATCH] Temporary disable track creation --- CHANGELOG.md | 7 ++++++- app/models/point.rb | 2 +- config/schedule.yml | 8 ++++---- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c244831..02ab8cb0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,13 +4,18 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). -# [0.30.1] - 2025-07-21 +# [0.30.1] - 2025-07-22 ## Fixed - Points limit exceeded check is now cached. - Reverse geocoding for places is now significantly faster. +## Changed + +- Stats page should load faster now. +- Track creation is temporarily disabled. + # [0.30.0] - 2025-07-21 diff --git a/app/models/point.rb b/app/models/point.rb index 75566be3..96e9e68a 100644 --- a/app/models/point.rb +++ b/app/models/point.rb @@ -34,7 +34,7 @@ class Point < ApplicationRecord after_create :set_country after_create_commit :broadcast_coordinates after_create_commit :trigger_incremental_track_generation, if: -> { import_id.nil? } - after_commit :recalculate_track, on: :update, if: -> { track.present? } + # after_commit :recalculate_track, on: :update, if: -> { track.present? } def self.without_raw_data select(column_names - ['raw_data']) diff --git a/config/schedule.yml b/config/schedule.yml index dee572ce..0dc3c9e8 100644 --- a/config/schedule.yml +++ b/config/schedule.yml @@ -30,10 +30,10 @@ cache_preheating_job: class: "Cache::PreheatingJob" queue: default -tracks_cleanup_job: - cron: "0 2 * * 0" # every Sunday at 02:00 - class: "Tracks::CleanupJob" - queue: tracks +# tracks_cleanup_job: +# cron: "0 2 * * 0" # every Sunday at 02:00 +# class: "Tracks::CleanupJob" +# queue: tracks place_name_fetching_job: cron: "30 0 * * *" # every day at 00:30