Sync and inventory
Symptoms
Orders on Shopify do not appear. Stock changed in a warehouse and the channel quantity did not. A channel that used to sync is quiet.
Likely causes
- Scheduler process is down.
- Tenant
isActiveorsubscription.isActiveis false. The scheduler excludes those tenants. Whether HTTP writes are also blocked is unknown. - Channel status is
INACTIVE(a person turned it off) orSUSPENDED(circuit breaker). Automated code must not flipINACTIVEback toACTIVE. - Channel type has no registered handler (
CUSTOM, or a provider missing order and catalog classes). The scheduler warns and continues. - Order interval is tenant-configured. The 5 minute figure is a comment, not the constant you should quote as universal.
allocationModeisUNMANAGED. The schema comment calls that the inventory off switch.- Outbox
stock.sync.requestedisDEADor the worker is down, so the publish buffer never runs. - Amazon feed was submitted and
ChannelInventoryStatewaits forchannel-feed-poll. - The flush job recorded per-item
success: falseand still completed.
How to investigate
SyncJobLogfor the channel.OutboxEventforstock.sync.requested.- Bull Board queues
sync_queueandinventory_publish_queueif they are registered. Inventory is on the board. - Channel status and
allocationMode. ChannelInventoryFeedSubmissionfor Amazon-style connectors.
Resolution
Start the scheduler and worker. For suspension, the code stops syncing. The unsuspend procedure is unknown. For UNMANAGED, change the allocation mode if publishing is intended. That is a data change, not a worker restart.
Do not “fix” a suspended channel by writing INACTIVE.