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}")
|
Rails.logger.info("🖼️ Preview state: #{@party.preview_state}")
|
||||||
|
|
||||||
case @party.preview_state
|
case @party.preview_state
|
||||||
when 'pending'
|
when 'pending', 'queued'
|
||||||
Rails.logger.info("🖼️ State is pending, will generate")
|
Rails.logger.info("🖼️ State is #{@party.preview_state}, will generate")
|
||||||
true
|
true
|
||||||
when 'queued', 'in_progress'
|
when 'in_progress'
|
||||||
Rails.logger.info("🖼️ State is #{@party.preview_state}, skipping generation")
|
Rails.logger.info("🖼️ State is in_progress, skipping generation")
|
||||||
false
|
false
|
||||||
when 'failed'
|
when 'failed'
|
||||||
should_retry = @party.preview_generated_at.nil? ||
|
should_retry = @party.preview_generated_at.nil? ||
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue