Update coordinator.rb

Adds 'queued' as a state for generation
This commit is contained in:
Justin Edmund 2025-02-09 18:35:59 -08:00
parent 3f325e025a
commit ad2d9a1614

View file

@ -146,11 +146,11 @@ module PreviewService
Rails.logger.info("🖼️ Preview state: #{@party.preview_state}")
case @party.preview_state
when 'pending'
Rails.logger.info("🖼️ State is pending, will generate")
when 'pending', 'queued'
Rails.logger.info("🖼️ State is #{@party.preview_state}, will generate")
true
when 'queued', 'in_progress'
Rails.logger.info("🖼️ State is #{@party.preview_state}, skipping generation")
when 'in_progress'
Rails.logger.info("🖼️ State is in_progress, skipping generation")
false
when 'failed'
should_retry = @party.preview_generated_at.nil? ||