This is an extension to the Sidekiq Web UI, which allows triggering jobs on adhoc basis.
gem install sidekiq_adhoc_job
To enable this extension, insert this piece of code in your app at the initialization stage:
require 'sidekiq_adhoc_job'
SidekiqAdhocJob.configure do |config|
config.module_names = ['YourProject::Worker']
end
SidekiqAdhocJob.init
Options:
module_names
: takes in a list of module names that include the worker classes to be loaded, required
Without first configuring, it will raise SidekiqAdhocJob::InvalidConfigurationError
when SidekiqAdhocJob.init
is called.