Subscribe first, then enqueue

Reverse this and you might miss the signal forever

class Website::RenditionJob < ApplicationJob
  # new(cache).enqueue.wait
  #          ^^^^^^^
  def enqueue(*)
    # 👂 Listen for "done" on Postgres
    channel.subscribe
    # 🚀 Now enqueue the job
    super
  end
end
18 / 45