mirror of
https://github.com/plashchynski/crono.git
synced 2026-03-24 02:11:39 +01: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