feat(operation_log): add Cron::DossierOperationLogMoveToColdStorageJob
This commit is contained in:
parent
c0fd080d0e
commit
b89f6e2d53
1 changed files with 9 additions and 0 deletions
|
@ -0,0 +1,9 @@
|
||||||
|
class Cron::DossierOperationLogMoveToColdStorageJob < Cron::CronJob
|
||||||
|
self.schedule_expression = "every day at 1 am"
|
||||||
|
|
||||||
|
def perform
|
||||||
|
DossierOperationLog
|
||||||
|
.with_data
|
||||||
|
.find_each(&:move_to_cold_storage!)
|
||||||
|
end
|
||||||
|
end
|
Loading…
Add table
Reference in a new issue