Skip to content

Commit 3fe53b2

Browse files
committed
Update patient statuses overnight
This is necessary as the registration status of a patient is tied to the current day and needs to reset the next day when there may no longer be a session date on that day.
1 parent 6a5fe05 commit 3fe53b2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

config/environments/production.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,11 @@
135135
class: "RemoveImportCSVJob",
136136
description: "Remove CSV data from old cohort and immunisation imports"
137137
},
138+
status_updater: {
139+
cron: "every day at 3am",
140+
class: "StatusUpdaterJob",
141+
description: "Updates the status of all patients"
142+
},
138143
trim_active_record_sessions: {
139144
cron: "every day at 2am",
140145
class: "TrimActiveRecordSessionsJob",

0 commit comments

Comments
 (0)