mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-30 06:21:50 -05:00
Delete job statistics tasks
The tasks are no longer being used, so can be deleted safely: * record_initial_job_statistics * record_outcome_job_statistics * timeout-job-statistics The test file for the statistics tasks was deleted in a previous commit.
This commit is contained in:
@@ -32,7 +32,6 @@ from app.celery.scheduled_tasks import (
|
||||
send_scheduled_notifications,
|
||||
send_total_sent_notifications_to_performance_platform,
|
||||
switch_current_sms_provider_on_slow_delivery,
|
||||
timeout_job_statistics,
|
||||
timeout_notifications,
|
||||
daily_stats_template_usage_by_month,
|
||||
letter_raise_alert_if_no_ack_file_for_zip
|
||||
@@ -492,13 +491,6 @@ def test_should_send_all_scheduled_notifications_to_deliver_queue(sample_templat
|
||||
assert not scheduled_notifications
|
||||
|
||||
|
||||
def test_timeout_job_statistics_called_with_notification_timeout(notify_api, mocker):
|
||||
notify_api.config['SENDING_NOTIFICATIONS_TIMEOUT_PERIOD'] = 999
|
||||
dao_mock = mocker.patch('app.celery.scheduled_tasks.dao_timeout_job_statistics')
|
||||
timeout_job_statistics()
|
||||
dao_mock.assert_called_once_with(999)
|
||||
|
||||
|
||||
def test_should_call_delete_inbound_sms_older_than_seven_days(notify_api, mocker):
|
||||
mocker.patch('app.celery.scheduled_tasks.delete_inbound_sms_created_more_than_a_week_ago')
|
||||
delete_inbound_sms_older_than_seven_days()
|
||||
|
||||
Reference in New Issue
Block a user