Use human readable expressions instead of cron gibberish
https://github.com/floraison/fugit#fugitnat
This commit is contained in:
parent
a2b50efa3b
commit
6dc1f3e2c4
19 changed files with 39 additions and 16 deletions
|
@ -1,5 +1,5 @@
|
|||
class DiscardedProceduresDeletionJob < CronJob
|
||||
self.cron_expression = "0 7 * * *"
|
||||
self.schedule_expression = "every day at 1 am"
|
||||
|
||||
def perform(*args)
|
||||
Procedure.discarded_expired.find_each do |procedure|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue