# frozen_string_literal: true

class ProcessUserJob < ApplicationJob
  queue_as :default

  def perform(id)
    u = User.find(id)
    u.locked = false
    u.save
  end
end

Add ActiveJob that will just free existing users for worker
Add ActiveJob that will just free existing users for worker

Jobs that are in the queue currently will still retry a few times (or go
to the deadset). If there's no job they will be sent straight to the
dead queue. With this the existing jobs will not fail and will
transition to worker without any issues.
