class InventorySync::Async::InventoryScheduledSync
Public Instance Methods
logger()
click to toggle source
# File lib/inventory_sync/async/inventory_scheduled_sync.rb, line 24 def logger action_logger end
plan()
click to toggle source
# File lib/inventory_sync/async/inventory_scheduled_sync.rb, line 6 def plan unless Setting[:allow_auto_inventory_upload] logger.debug( 'The scheduled process is disabled due to the "allow_auto_inventory_upload" setting being set to false.' ) return end Organization.unscoped.each do |org| plan_org_sync(org) end end
plan_org_sync(org)
click to toggle source
# File lib/inventory_sync/async/inventory_scheduled_sync.rb, line 20 def plan_org_sync(org) plan_action InventoryFullSync, org end
rescue_strategy_for_self()
click to toggle source
# File lib/inventory_sync/async/inventory_scheduled_sync.rb, line 28 def rescue_strategy_for_self Dynflow::Action::Rescue::Fail end