Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add BQ table check job #253

Merged
merged 1 commit into from
Feb 20, 2024
Merged

Add BQ table check job #253

merged 1 commit into from
Feb 20, 2024

Conversation

steventux
Copy link
Contributor

@steventux steventux commented Feb 15, 2024

Context

The data insights team have asked if we can add a check to our services to verify the data that we’re holding in BigQuery. The check periodically sends table row counts that can be checked against the big query data and runs as a scheduled job.

Changes proposed in this pull request

Add dfe-analytics config and schedule appropriate job to check tables.

Guidance to review

Link to Trello card

https://trello.com/c/fVu2pkoU/1820-add-bigquery-table-check

Checklist

  • Attach to Trello card
  • Rebased main
  • Cleaned commit history
  • Tested by running locally

@steventux
Copy link
Contributor Author

Add BigQuery table check

@steventux steventux force-pushed the 1820-add-bigquery-table-check branch from 995d4ad to 8612924 Compare February 15, 2024 17:19
@steventux steventux requested a review from gpeng February 15, 2024 17:36
config/clock.rb Outdated
@@ -3,4 +3,5 @@

module Clockwork
every(1.day, "DeleteUnconfirmedEntries.perform_later", at: "00:00")
every(30.minutes, "DfE::Analytics::EntityTableCheckJob.set(queue: 'analytics').perform_later")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The data insights team are suggesting once a day. I don't think we need to send it this often.

To be run on analytics queue every day at 00:30.
@steventux steventux force-pushed the 1820-add-bigquery-table-check branch from 8612924 to 25e8746 Compare February 19, 2024 10:03
@steventux steventux merged commit ffceedd into main Feb 20, 2024
11 checks passed
@steventux steventux deleted the 1820-add-bigquery-table-check branch February 20, 2024 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants