taskiq allows you to run any rake task in the background using sidekiq.
# Gemfile
gem 'taskiq', '0.1.1'
# Rakefile (at the end)
require 'tasks/taskiq'
Add delay: to the start of any rake task e.g.
$ rake delay:db:seed
rake db:seed will now be run in the background as a sidekiq job