mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-02 20:15:22 +02:00
Security resolver and health checker (#2281)
* Setup health check * Security health checker cron * Use resolver throughout codebase * Use resolver for trade builder * Add security health checks to schedule * Handle no provider * Lint fixes
This commit is contained in:
parent
857436d894
commit
e4ee06c9f6
19 changed files with 599 additions and 78 deletions
|
@ -0,0 +1,8 @@
|
|||
class AddSecurityResolverFields < ActiveRecord::Migration[7.2]
|
||||
def change
|
||||
add_column :securities, :offline, :boolean, default: false, null: false
|
||||
add_column :securities, :failed_fetch_at, :datetime
|
||||
add_column :securities, :failed_fetch_count, :integer, default: 0, null: false
|
||||
add_column :securities, :last_health_check_at, :datetime
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue