diff --git a/Gemfile.lock b/Gemfile.lock index 7cad15742..183479832 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -138,7 +138,7 @@ GEM builder (3.2.4) byebug (11.1.3) coderay (1.1.3) - concurrent-ruby (1.3.1) + concurrent-ruby (1.3.4) config (4.1.0) deep_merge (~> 1.2, >= 1.2.1) dry-validation (~> 1.0, >= 1.0.0) @@ -203,7 +203,7 @@ GEM ecdsa_ext (0.5.1) ecdsa (~> 1.2.0) erubi (1.12.0) - et-orbi (1.2.7) + et-orbi (1.2.11) tzinfo eventmachine (1.2.7) eventmachine_httpserver (0.2.1) @@ -224,8 +224,8 @@ GEM ffi (>= 1.0.0) rake fiber-local (1.0.0) - fugit (1.8.1) - et-orbi (~> 1, >= 1.2.7) + fugit (1.11.1) + et-orbi (~> 1, >= 1.2.11) raabro (~> 1.4) globalid (1.2.1) activesupport (>= 6.1) @@ -403,7 +403,7 @@ GEM redis-objects (2.0.0.beta) redis (~> 5.0) regexp_parser (2.7.0) - rexml (3.3.3) + rexml (3.3.6) strscan rubocop (1.50.1) json (~> 2.3) diff --git a/lib/scheduler.rb b/lib/scheduler.rb index 126b30de8..dec18da08 100644 --- a/lib/scheduler.rb +++ b/lib/scheduler.rb @@ -30,13 +30,6 @@ def call_worker(clz) puts "fininsh #{clz.name}" end -# Vacuum database periodically for better performance -s.cron "0 2 * * 1" do - ActiveRecord::Base.connection.execute("SET statement_timeout = 0") - ApplicationRecord.connection.execute "vacuum (verbose, analyze)" - ActiveRecord::Base.connection.execute("RESET statement_timeout") -end - s.cron "0 8 * * *" do call_worker Charts::DailyStatistic end