Skip to content

Commit 0112dd8

Browse files
committed
Add recurring schedule for notifying admin users of bounced emails
Schedule the ScheduleBounceNotificationsJob to run daily at 2:30am when rails is running in production mode. This job will schedule SendBounceNotificationsJobs to send notifications for any bounces that occurred on the previous day to group admins, and for any bounces that occurred 8 days ago to organisation admins. 2:30am was chosen just to not be the same time as other recurring jobs.
1 parent 3cd5eae commit 0112dd8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

config/recurring.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ production:
1717
schedule_weekly_batch_deliveries_job:
1818
class: ScheduleWeeklyBatchDeliveriesJob
1919
schedule: every Monday at 2:15am Europe/London
20+
schedule_bounce_notifications_job:
21+
class: ScheduleBounceNotificationsJob
22+
schedule: every day at 2:30am Europe/London
2023
development:
2124
delete_submissions_job:
2225
class: DeleteSubmissionsJob

0 commit comments

Comments
 (0)