diff --git a/lib/crono/job.rb b/lib/crono/job.rb index c7081a2..28a766b 100644 --- a/lib/crono/job.rb +++ b/lib/crono/job.rb @@ -11,7 +11,8 @@ module Crono end def next - period.next(since: last_performed_at) + next_time = period.next(since: last_performed_at) + next_time.past? ? period.next : next_time end def description