-
Notifications
You must be signed in to change notification settings - Fork 106
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
Send Slack alerts when found modified legal case (ADR/AF/MUR) #4957
Conversation
Send message to slack when found modified cases. Change string value with single quote to double quote
Codecov Report
@@ Coverage Diff @@
## develop #4957 +/- ##
===========================================
- Coverage 85.97% 85.83% -0.15%
===========================================
Files 81 81
Lines 7582 7597 +15
===========================================
+ Hits 6519 6521 +2
- Misses 1063 1076 +13
Continue to review full report at Codecov.
|
Mini postmortem missing MUR_7133 issue (15:15pm 9/16/2021)
Anil(Contractor) response(09/20/2021 12:11pm):There was a deadlock on the fecmur.entity Oracle table during publish on 9/16. This is the first we have seen of this error that I can recall. |
90a23f3
to
1af499b
Compare
Analyze MUR 7875 in Kibana logs: 5)2021-09-20 14:20:00.103 EST--MUR 7875 found modified at 2021-09-20 14:12:55.935 (Celery task again after 5 mins) .... 10)2021-09-20 18:35:00.106 EST--MUR 7875 found modified at 2021-09-20 14:36:20.306 (last time Celery task run) ---------Questions ---------- 2)The worst case: if published case start at 10am, that means 3)Can we think about reduce schedule frequency? |
@fec-jli It appears that elasticsearch service is required while testing this PR on local environment. Can you update your Option#1 test instructions? |
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.
I have tested on my local env. New alerts appeared on slack #test-bot with the latest case numbers and timestamp that were recently published in aurora db.
Works as expected. Awesome work @fec-jli
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.
Great work, @fec-jli!
Summary
During reloading modified legal case(MUR/AF/ADR), we're experiencing two kinds of issue
The cause of this see below explanation. We will coordinate with contractor to fix it.
Ref tickets:
#4364
#4361
Changes are included in this PR
Required reviewers
one backend developer is ok, two developers are better.
Impacted areas of the application
General components of the application that this PR will affect:
Celery-worker cron task
How to test
Option 1: Local test (hard to setup locally, but easy to test cronjob):
change 'n' hour to get modified case result return.
It should be something like this:
Note: if you don't setup Elasticsearch locally, you can comment out this task schedule to get rid of some error messages.
Option 2: Deploy on dev:
It should be something like this:
Task Schedule Management Diagram:
https://docs.google.com/drawings/d/1RjDRBGRzi6iZOqTSGTgyEgWPmOk5g5HWKAYOmrdD8GU/edit