1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-02 03:55:20 +02:00

Use Redis for ActiveJob and ActionCable (#2004)

* Use Redis for ActiveJob and ActionCable

* Fix alwaysApply setting

* Update queue names and weights

* Tweak weights

* Update job queues

* Update docker setup guide

* Remove deprecated upgrade columns from users table

* Refactor Redis configuration for Sidekiq and caching in production environment

* Add Sidekiq Sentry monitoring

* queue naming fix

* Clean up schema
This commit is contained in:
Zach Gollwitzer 2025-03-19 12:36:16 -04:00 committed by GitHub
parent a7db914005
commit 19cc63c8f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
75 changed files with 328 additions and 1684 deletions

0
db/seeds/.keep Normal file
View file

View file

@ -1,36 +0,0 @@
# Load exchanges from YAML configuration
exchanges_config = YAML.safe_load(
File.read(Rails.root.join('config', 'exchanges.yml')),
permitted_classes: [],
permitted_symbols: [],
aliases: true
)
exchanges_config.each do |exchange|
next unless exchange['mic'].present? # Skip any invalid entries
StockExchange.find_or_create_by!(mic: exchange['mic']) do |ex|
ex.name = exchange['name']
ex.acronym = exchange['acronym']
ex.country = exchange['country']
ex.country_code = exchange['country_code']
ex.city = exchange['city']
ex.website = exchange['website']
# Timezone details
if exchange['timezone']
ex.timezone_name = exchange['timezone']['timezone']
ex.timezone_abbr = exchange['timezone']['abbr']
ex.timezone_abbr_dst = exchange['timezone']['abbr_dst']
end
# Currency details
if exchange['currency']
ex.currency_code = exchange['currency']['code']
ex.currency_symbol = exchange['currency']['symbol']
ex.currency_name = exchange['currency']['name']
end
end
end
puts "Created #{StockExchange.count} stock exchanges"