-
Notifications
You must be signed in to change notification settings - Fork 10
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
Feature/dpm 174 data hub api investigate rq health check #5266
Feature/dpm 174 data hub api investigate rq health check #5266
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## migration-deploy #5266 +/- ##
====================================================
+ Coverage 96.56% 96.61% +0.04%
====================================================
Files 915 916 +1
Lines 21631 21658 +27
Branches 1932 1935 +3
====================================================
+ Hits 20888 20924 +36
+ Misses 602 595 -7
+ Partials 141 139 -2 ☔ View full report in Codecov by Sentry. |
cf8e129
to
2d40f8e
Compare
a33524a
to
30fa6dd
Compare
c9f9483
to
c69f824
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some food for thought. View full project report here.
redis = Redis.from_url(settings.REDIS_BASE_URL) | ||
workers = Worker.all(connection=redis) | ||
queue_names = reduce(concat, [worker.queue_names() for worker in workers], []) | ||
missing_queues = set([queue]) - set(queue_names) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing_queues = set([queue]) - set(queue_names) | |
missing_queues = {queue} - set(queue_names) |
Using set literal syntax is simpler and computationally quicker. Explained here.
* Create Command for rq health check and include in docker-compose.yml configuration.
* Create Command for rq health check and include in docker-compose.yml configuration.
* Create Command for rq health check and include in docker-compose.yml configuration.
* Create Command for rq health check and include in docker-compose.yml configuration.
* Create Command for rq health check and include in docker-compose.yml configuration.
* Create Command for rq health check and include in docker-compose.yml configuration.
* Create Command for rq health check and include in docker-compose.yml configuration.
* Update codeowners * Add sample rate to sentry (#5532) * Add sample rate to sentry * Add new action for govpaas branch * Bump django from 4.2.11 to 4.2.14 (#5536) Bumps [django](https://github.com/django/django) from 4.2.11 to 4.2.14. - [Commits](django/django@4.2.11...4.2.14) --- updated-dependencies: - dependency-name: django dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Add new fields to sentry config (#5537) * Remove migration actions (#5538) * Update redis * Update open search * Update pingdom end point url * Feature/dpm 174 data hub api investigate rq health check (#5266) * Create Command for rq health check and include in docker-compose.yml configuration. * DPM 199 Data Hub API logging (#5304) * Change logging to ASIM formatter * Update common_logging.py * do not run collectstatic at run time on DBT Platform * add build configuration for DBT Platform * remove debug setup * Migration/DPM 343 Data Hub API application settings (#5340) * Change DATABASE_URL connection string to DATABASE_CREDENTIALS containing JSON structure. * update database environment for build job * Rename reserved environment variables (#5345) * Debug: DBT Platform * Debug: metadata hawk authentication * Debug: DBT Patch * Debug: test on sector filter * Debug: Hawk * Undo debugging * Fix Flake8 Missing newline between import groups (#5457) * TET 801 Stop Opensearch addess showing credentials (#5519) * Stop showing open search credentials on connection error. * Allow for setting of pool maxsize on open search connection. --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Christopher <christopher.sunkel@digital.trade.gov.uk> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Lawrence Goldstien <lawrence.goldstein@digital.trade.gov.uk>
Description of change
Add RQ health check.
A health check has been added to
docker-compose.yml
for rq_short and rq_long processes.If you run
docker ps
you should now see (healthy) status for the rq_short and rq_long processes.Checklist
Has this branch been rebased on top of the current
main
branch?Explanation
The branch should not be stale or have conflicts at the time reviews are requested.
Is the CircleCI build passing?
General points
Other things to check
fixtures/test_data.yaml
is maintained when updating modelsSee docs/CONTRIBUTING.md for more guidelines.