mirror of
https://github.com/GSA/notifications-api.git
synced 2026-07-03 16:07:13 -04:00
code review feedback and merge from main
This commit is contained in:
@@ -166,7 +166,7 @@ class Config(object):
|
||||
current_minute = (datetime.now().minute + 1) % 60
|
||||
|
||||
CELERY = {
|
||||
"worker_max_tasks_per_child": 20,
|
||||
"worker_max_tasks_per_child": 200,
|
||||
"broker_url": REDIS_URL,
|
||||
"broker_transport_options": {
|
||||
"visibility_timeout": 310,
|
||||
|
||||
@@ -100,7 +100,6 @@ def transform_into_notification_by_type_json(total_notifications):
|
||||
def transform_processing_time_results_to_json(processing_time_results):
|
||||
j = []
|
||||
for x in processing_time_results:
|
||||
print(f"HERE IS A PROCESSING TIME RESULT {x}")
|
||||
j.append({"date": x.date, "percentage_under_10_seconds": x.percentage})
|
||||
|
||||
return j
|
||||
|
||||
@@ -79,7 +79,6 @@ def test_get_processing_time_percentage_for_date_range_handles_zero_cases(
|
||||
)
|
||||
|
||||
results = get_processing_time_percentage_for_date_range("2021-02-21", "2021-02-22")
|
||||
print(f"HERE ARE THE RESULTS {results}")
|
||||
assert len(results) == 2
|
||||
assert results[0].date == "2021-02-21"
|
||||
assert results[0].messages_total == 0
|
||||
|
||||
Reference in New Issue
Block a user