Add Job#description

This commit is contained in:
Dzmitry Plashchynski
2015-03-05 14:03:07 +02:00
parent 5b66e9049b
commit 007989fa2c
2 changed files with 10 additions and 0 deletions

View File

@@ -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