JoobQ::Scheduler::CronJob
Inherits Struct < Value < Object
Constructors
new(pattern : String, timezone : Time::Location, next_run : String, block : Proc(Nil))
SourceInstance methods
block
clone
Sourcecopy_with(pattern _pattern = @pattern, timezone _timezone = @timezone, next_run _next_run = @next_run, block _block = @block)
Sourcenext_run(next_time : Time)
Sourcenext_run
pattern
timezone
to_h
Sourcewith_next_run(next_time : Time) : CronJob
Records are structs, so next_run(Time) only changes a copy. Use this
and store the result when the change must stick.