mirror of
https://github.com/plashchynski/crono.git
synced 2026-05-11 02:10:21 +02:00
Add Job#description
This commit is contained in:
@@ -12,6 +12,10 @@ module Crono
|
||||
period.next(since: last_performed_at)
|
||||
end
|
||||
|
||||
def description
|
||||
"Perform #{performer} #{period.description}"
|
||||
end
|
||||
|
||||
def perform
|
||||
Crono.logger.info "Perform #{performer}"
|
||||
self.last_performed_at = Time.now
|
||||
|
||||
Reference in New Issue
Block a user