Parameters:
The name of the task to execute.
The arguments to pass to the task.
Raises:
If the task is not found.
13 14 15 16
# File 'lib/sidekiq/tasks/job.rb', line 13 def perform(name, args) symbolized_args = JSON.parse(args, symbolize_names: true) Sidekiq::Tasks.tasks.find_by!(name: name).execute(symbolized_args, jid: jid) end