1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
mperham--sidekiq/myapp/Rakefile

16 lines
420 B
Ruby

#!/usr/bin/env rake
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
require File.expand_path('../config/application', __FILE__)
Myapp::Application.load_tasks
task :load_jobs => :environment do
require 'sidekiq/api'
Sidekiq::Queue.new.clear
50_000.times do |x|
EmptyWorker.perform_async
end
end