Update coordinator.rb
Adds 'queued' as a state for generation
This commit is contained in:
parent
3f325e025a
commit
ad2d9a1614
1 changed files with 4 additions and 4 deletions
|
|
@ -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? ||
|
||||
|
|
|
|||
Loading…
Reference in a new issue