Persist and expose via API the progress of the tables arrangement simulations #316
@ -8,7 +8,7 @@ class TableSimulatorJob < ApplicationJob
|
|||||||
MIN_PER_TABLE = 8
|
MIN_PER_TABLE = 8
|
||||||
MAX_PER_TABLE = 10
|
MAX_PER_TABLE = 10
|
||||||
|
|
||||||
def perform(wedding_id, tables_arrangement_id)
|
def perform(wedding_id, tables_arrangement_id) # rubocop:disable Metrics/MethodLength
|
||||||
Rails.logger.info "Starting table simulation #{tables_arrangement_id} for wedding #{wedding_id}"
|
Rails.logger.info "Starting table simulation #{tables_arrangement_id} for wedding #{wedding_id}"
|
||||||
ActsAsTenant.with_tenant(Wedding.find(wedding_id)) do
|
ActsAsTenant.with_tenant(Wedding.find(wedding_id)) do
|
||||||
engine = VNS::Engine.new
|
engine = VNS::Engine.new
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user