Skip to content

Commit

Permalink
Add BQ table check job
Browse files Browse the repository at this point in the history
To be run on analytics queue every day at 00:30.
  • Loading branch information
steventux committed Feb 19, 2024
1 parent fd04fca commit 25e8746
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/initializers/dfe_analytics.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
DfE::Analytics.configure do |config|
config.queue = :analytics
config.environment = HostingEnvironment.environment_name
config.entity_table_checks_enabled = true

config.enable_analytics =
proc do
Expand Down
4 changes: 4 additions & 0 deletions config/schedule.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
trim_db_sessions:
cron: "0 4 * * *" # every day at 4am
class: "TrimSessionsJob"
send_entity_table_check_data:
cron: "30 0 * * *" # Every day at 00:30.
class: "DfE::Analytics::EntityTableCheckJob"
queue: analytics

0 comments on commit 25e8746

Please sign in to comment.