Skip to content

Commit

Permalink
Merge pull request #1906 from DFE-Digital/dfe-analytics-entity-check
Browse files Browse the repository at this point in the history
Enable analytics entity table check
  • Loading branch information
thomasleese authored Jan 9, 2024
2 parents bf912ac + 0589832 commit 5dfd58a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config/initializers/dfe_analytics.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# frozen_string_literal: true

DfE::Analytics.configure do |config|
config.queue = :analytics
config.entity_table_checks_enabled = Rails.env.production?
config.environment = HostingEnvironment.name
config.queue = :analytics

config.enable_analytics =
proc do
Expand Down
5 changes: 5 additions & 0 deletions config/schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ send_reference_request_reminders:
class: SendReminderEmailsJob
args: ["ReferenceRequest"]

analytics_entity_table_check:
cron: "0 4 * * *"
class: DfE::Analytics::EntityTableCheckJob
queue: analytics

fetch_malware_scan_results:
cron: "*/30 * * * *"
class: FetchMalwareScanResultsJob

0 comments on commit 5dfd58a

Please sign in to comment.