Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy to testnet #2193

Merged
merged 3 commits into from
Sep 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand All @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
7 changes: 0 additions & 7 deletions lib/scheduler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading