class

Autobot::Cron::CronJob

Inherits JSON::Serializable < Reference < Object

A scheduled job.

Constructors

new(id : String, name : String, enabled : Bool = true, schedule : Autobot::Cron::CronSchedule = CronSchedule.new(kind: ScheduleKind::Every), payload : Autobot::Cron::CronPayload = CronPayload.new, state : Autobot::Cron::CronJobState = CronJobState.new, created_at_ms : Int64 = 0_i64, updated_at_ms : Int64 = 0_i64, delete_after_run : Bool = false, owner : String | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

created_at_ms
Source
created_at_ms=(created_at_ms : Int64)
Source
delete_after_run=(delete_after_run : Bool)
Source
delete_after_run?
Source
enabled=(enabled : Bool)
Source
enabled?
Source
id=(id : String)
Source
name
Source
name=(name : String)
Source
owner
Source
owner=(owner : String | Nil)
Source
payload
Source
payload=(payload : CronPayload)
Source
schedule
Source
schedule=(schedule : CronSchedule)
Source
state
Source
state=(state : CronJobState)
Source
updated_at_ms
Source
updated_at_ms=(updated_at_ms : Int64)
Source