Module: ActiveJob::Cron
- Extended by:
- Configurable, Schedulable, Trackable
- Defined in:
- lib/active_job/cron.rb,
lib/active_job/cron/clock.rb,
lib/active_job/cron/handler.rb,
lib/active_job/cron/railtie.rb,
lib/active_job/cron/version.rb,
lib/active_job/cron/loggable.rb,
lib/active_job/cron/trackable.rb,
lib/active_job/cron/supervisor.rb,
lib/active_job/cron/schedulable.rb,
lib/active_job/cron/configuration.rb
Defined Under Namespace
Modules: Configurable, Loggable, Schedulable, Trackable
Classes: Clock, Configuration, Handler, Railtie, Supervisor
Constant Summary
collapse
- VERSION =
"0.1.0"
Instance Attribute Summary
Attributes included from Schedulable
#last_occurrence
Class Method Summary
collapse
config, configure
Methods included from Trackable
inherited, subclasses
method_missing, ready_to_perform?, recurrence, schedule
Class Method Details
.included(klass) ⇒ Object
.jobs ⇒ Object
28
29
30
31
32
|
# File 'lib/active_job/cron.rb', line 28
def jobs
subclasses(true).select do |job|
job.method_defined?(:perform)
end
end
|
.run! ⇒ Object
52
53
54
|
# File 'lib/active_job/cron.rb', line 52
def run!
Supervisor.run!
end
|