Skip to content

Commit

Permalink
Edit slack message bot and documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
cnlucas committed Sep 30, 2022
1 parent 5d141b6 commit 13f164d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions webservices/tasks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
"task": "webservices.tasks.legal_docs.weekly_reload_all_aos",
"schedule": crontab(minute=0, hour=1, day_of_week="sun"),
},
# Task 4: This task is launched at 7:55pm(EST) everyday.
# When found modified case(s)(MUR/AF/ADR) in past 13 hours + 55 minutes (6am-7:55pm EST), send case detail information to Slack.
# Task 4: This task is launched at 19:55pm(EST) everyday.
# When found modified case(s)(MUR/AF/ADR) in past 24 hours (19:55pm-19:55pm EST), send case detail information to Slack.
"send_alert_legal_case": {
"task": "webservices.tasks.legal_docs.send_alert_daily_modified_legal_case",
"schedule": crontab(minute=55, hour=23),
Expand Down
4 changes: 2 additions & 2 deletions webservices/tasks/legal_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@
ORDER BY ao_year, ao_serial;
"""

# for send_alert_daily_modified_legal_case(): during 6am-7pm(EST) (13 hours)
# for send_alert_daily_modified_legal_case(): during 19:55pm-19:55pm(EST) (24 hours)
DAILY_MODIFIED_CASES_SEND_ALERT = """
SELECT case_no, case_type, pg_date, published_flg
FROM fecmur.cases_with_parsed_case_serial_numbers_vw
WHERE pg_date >= NOW() - '13 hour'::INTERVAL
WHERE pg_date >= NOW() - '24 hour'::INTERVAL
ORDER BY case_serial;
"""

Expand Down

0 comments on commit 13f164d

Please sign in to comment.