# File lib/resque/scheduler/server.rb, line 56 def schedule_requeue_with_params job_name = params['job_name'] || params[:job_name] config = Resque.schedule[job_name] # Build args hash from post data (removing the job name) submitted_args = params.reject do |key, _value| key == 'job_name' || key == :job_name end # Merge constructed args hash with existing args hash for # the job, if it exists config_args = config['args'] || config[:args] || {} config_args = config_args.merge(submitted_args) # Insert the args hash into config and queue the resque job config = config.merge('args' => config_args) Resque::Scheduler.enqueue_from_config(config) redirect u('/overview') end