DeleteBearerLoginsJob
Inherits Mel::Job::On < Mel::Job::Every < Mel::Job::Recurring < Mel::Job::Now < Mel::Job::In < JSON::Serializable < Mel::Job::Template < Mel::Job::At < Mel::Job::Instant < Mel::Job < Struct < Value < Object
Constructors
new(pull : JSON::PullParser)
new
Define a default constructor where none is provided. This is necessary
because JSON::Serializable defines a #initialize method which
means the default constructor is never added by the compiler.
Jobs require a custom constructor to be present, even if unused, otherwise we get a compile error:
"Error: wrong number of arguments for 'CollectJobsJob.new' (given 0, expected 1)" OR "Error: no overload matches 'CollectJobsJob.new' with type "
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Class methods
adapter
run(id = UUID.random.hexstring, retries = nil, store = nil, force = false, **job_args)
run_every(interval : Time::Span, for : Time::Span, from : Time | Nil = nil, id = UUID.random.hexstring, retries = nil, store = nil, force = false, **job_args)
run_every(interval : Time::Span, till : Time | Nil = nil, from : Time | Nil = nil, id = UUID.random.hexstring, retries = nil, store = nil, force = false, **job_args) : String | Nil
run_in(delay : Time::Span, id = UUID.random.hexstring, retries = nil, store = nil, force = false, **job_args) : String | Nil
run_on(schedule : String, for : Time::Span, from : Time = Time.local, id = UUID.random.hexstring, retries = nil, store = nil, force = false, **job_args)
Instance methods
after_dequeue(success)
after_enqueue(success)
after_run(success)
before_dequeue
before_enqueue
before_run
run
Source