Skip to content

Commit

Permalink
Merge pull request #2196 from nervosnetwork/testnet
Browse files Browse the repository at this point in the history
Deploy to mainnet
  • Loading branch information
zmcNotafraid authored Sep 14, 2024
2 parents a967b28 + f2dd5ec commit c8e69d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
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

0 comments on commit c8e69d8

Please sign in to comment.