#!/usr/bin/env ruby require 'bundler' Bundler.require(:default) require_relative '../lib/sucker_punch' class NoopJob include SuckerPunch::Job def perform(a) end end puts "Enqueuing 1MM jobs..." 1_000_000.times { NoopJob.perform_async(1) } puts "Executing jobs..." while SuckerPunch::Queue.all["NoopJob"]["jobs"]["enqueued"] > 0 sleep 0.01 end