Am using gem clockwork for running scheduled jobs.
I need to access all events defined in clock.rb for manually trigger the clockwork events when it fails.
For that I forked the clockwork gem by adding
attr_reader: events in
every(10.seconds, 'job1') do
Clockwork.manager.events in clock.rb it returns all events that defined in clock.rb.
class MyController < AdminController
@events = Clockwork.manager.events
But while using it in controller it returns empty value.
How to get all clockwork events in controller?